-
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
-
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
-
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
This file contains hidden or 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
// MIT License | |
// Copyright (c) 2019 Tsukanov Alexander | |
// 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 | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or 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
&НаКлиенте | |
Процедура Test(Команда) | |
ПараметрыВидео = Новый Структура; | |
ПараметрыВидео.Вставить("ЗаписьВидеоAmazonPollyTTSЯзык", "en-US"); | |
ПараметрыВидео.Вставить("ЗаписьВидеоAmazonPollyTTSГолос", "Aditi"); | |
ПараметрыВидео.Вставить("ЗаписьВидеоAmazonPollyTTSДвижок", "standard"); | |
КлючДоступа = "AKIAIOSFODNN7EXAMPLE"; |
This file contains hidden or 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
class ComObject { | |
[__ComObject] $object | |
ComObject($object) { | |
$this.object = $object | |
} | |
[Object] Get($name) { | |
$res = [__ComObject].InvokeMember($name, 'GetProperty', $null, $this.object, $null) |
This file contains hidden or 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 parser | |
import symbol | |
import token | |
from pprint import pprint | |
print('parse tree:') | |
x = parser.expr('1 + 2 * 3') | |
y = x.tolist() |
This file contains hidden or 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 pathlib | |
import concurrent.futures | |
def parse(path): | |
cnt = 0 | |
with open(str(path), 'r', encoding='utf-8-sig') as f: | |
for line in f.readlines(): | |
x = line.strip() | |
if x and not x.startswith('//'): | |
cnt += 1 |
This file contains hidden or 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
func (p *Parser) parseExpression() ast.Expr { | |
expr := p.parseAndExpr() | |
for p.tok == tokens.OR { | |
op := p.tok | |
p.scan() | |
expr = &ast.BinaryExpr{ | |
Left: expr, | |
Operator: op, | |
Right: p.parseAndExpr(), | |
} |
This file contains hidden or 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
""" | |
Сначала надо поставить библиотеку командой pip install pyodbc | |
""" | |
import pyodbc | |
server = 'localhost' | |
database = 'db_damaged' | |
username = 'sa' | |
password = 'пароль' | |
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password, autocommit=True) | |
cursor = cnxn.cursor() |
This file contains hidden or 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
local bytecodes = {} | |
local BC, run_function = {} | |
local VARG_CONST = {} | |
local lujlu_mt_funcs | |
local lujlu_cache = setmetatable({}, {__mode = "k"}) | |
local lujlu_identifier_mt = { | |
__tostring = function(self) | |
return tostring(lujlu_cache[self].data) | |
end, |