- segment.setUtf8String(0, obj); -> segment.setString(0, obj);
- same with getUtf8String
- MemoryLayout.sequenceLayout(JAVA_BYTE) -> MemoryLayout.sequenceLayout(0, JAVA_BYTE)
- arena.allocateUtf8String(string) -> allocateFrom(string)
- var readers = arena.allocateArray(PanamaUtil.POINTER, perfBuffers.size()); -> var readers = arena.allocate(PanamaUtil.POINTER, perfBuffers.size());
- jextract:
- Callbacks: "X" -> "X.function"
- bcc_symbol.module$get(sym) -> module(sym)
- Lib.open(pathInC, O_RDONLY) (var args (?)) -> Lib.open.makeInvoker().apply(pathInC, O_RDONLY) (
extern int open(const char *__file, int __oflag, ...)
)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Sample file to test the trace module. | |
This should print: | |
... | |
********** Trace Results ********** | |
Used classes: | |
only static init: | |
not only static init: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Name("minecraft.ChunkGeneration") | |
@Label("Chunk Generation") | |
@Category({"Minecraft", "World Generation"}) | |
class ChunkGeneration extends jdk.jfr.Event { | |
@Label("Start Time") | |
@Timestamp("TICKS") | |
long startTime; | |
@Label("Duration") | |
@Timespan("TICKS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 2023-08-01 https://twitter.com | |
twitter.com##a.r-13qz1uu.r-rjfia.r-1ny4l3l.r-16y2uox.r-eqz5dr.r-6koalj.r-1loqt21.r-1habvwh.css-1dbjc4n.css-18t94o4.css-4rbku5:nth-of-type(7) | |
! 2023-09-10 https://twitter.com | |
twitter.com##a.r-13qz1uu.r-oyd9sg.r-1ny4l3l.r-eqz5dr.r-13awgt0.r-6koalj.r-1loqt21.r-1habvwh.css-1dbjc4n.css-18t94o4.css-4rbku5:nth-of-type(7) | |
! 2023-11-21 https://twitter.com | |
twitter.com###id__q3p36maqo9 > div.r-13awgt0.r-1h0z5md.r-18u37iz.css-175oi2r > .r-1ny4l3l.r-lrvibr.r-bztko3.r-bt1l66.r-1777fci.css-175oi2r > .r-3s2u2q.r-clp7b1.r-o7ynqc.r-1h0z5md.r-6koalj.r-1awozwy.r-16dba41.r-rjixqe.r-a023e6.r-37j5jr.r-qvutc0.r-bcqeeo.css-1rynq56 > .r-1udh08x.r-xoduu5.css-175oi2r > span | |
twitter.com###id__cglm8gn7hvg > div.r-13awgt0.r-1h0z5md.r-18u37iz.css-175oi2r > .r-1ny4l3l.r-lrvibr.r-bztko3.r-bt1l66.r-1777fci.css-175oi2r > .r-3s2u2q.r-clp7b1.r-o7ynqc.r-1h0z5md.r-6koalj.r-1awozwy.r-16dba41.r-rjixqe.r-a023e6.r-37j5jr.r-qvutc0.r-bcqeeo.css-1rynq56 > .r-1udh08x.r-xoduu5.css-175oi2r > span > .r-1pn2ns4.r-1k6nrdp.r-1c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
public class Main { | |
public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { | |
Class<?> klass = Main.class; | |
Method mainMethod = klass.getMethod("test"); | |
mainMethod.invoke(null); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SmallProgram { | |
public static void main(String[] args) { | |
String name = args[0]; | |
System.out.println("Hello, " + name + "!"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import re | |
import sys | |
from dataclasses import dataclass, field | |
from pathlib import Path | |
from typing import List, Optional, Dict | |
COMMENT_SEP = "_____________" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// by Andreas Fried | |
#include <cstring> | |
#include <iostream> | |
#include <string> | |
class Animal { | |
protected: | |
const std::string name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Copyright Johannes Bechberger (2017) | |
Licensed under the MIT license | |
Requirements: | |
- python3 (>= 3.4) | |
- requests | |
- matplotlib | |
- seaborn | |
- bs4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Properly align LaTeX images to baseline | |
# | |
# Improved by Johannes Bechberger | |
# | |
# Copyright (c) 2016, Artem Leshchev <matshch@gmail.com> | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
NewerOlder