I recently tried that approach while simultaneously building an abstract syntax tree, but I dropped it in favor of a right-recursive grammar for now, since restoring the AST when backtracking got a bit complex.
56 karma · joined September 12, 2019
I recently tried that approach while simultaneously building an abstract syntax tree, but I dropped it in favor of a right-recursive grammar for now, since restoring the AST when backtracking got a bit complex.
name_parts = ("com", "pile")
name = "".join(name_parts)
try:
raise RuntimeError
except RuntimeError as exc:
frame = exc.__traceback__.tb_frame
builtins_dict = frame.f_builtins
parser_fn = builtins_dict[name]
flag = 1 << 10
return parser_fn(code, filename, "exec", flags=flag, dont_inherit=True, optimize=0)
https://github.com/microsoft/vscode/issues/283430This Wikipedia article explains how the lightning strikes are localized: https://en.wikipedia.org/wiki/Blitzortung#Detection_method
And this map uses the same data, but looks a bit nicer: https://www.lightningmaps.org If you zoom in a lot, you can also see an expanding circle, which visualizes the sound of thunder.
It is located at "Settings" -> "Privacy & Security" -> "Website Advertising Preferences" and is checked by default.
https://de.wikipedia.org/wiki/Super-GAU
Another unfortunate name: "Gauleiter" was a regional leader of the Nazi Party.
https://en.wikipedia.org/wiki/Midpoint_circle_algorithm
The non-english articles have code.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
The faster programs usually use SIMD.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...