- Case sensitive
- Haskell-like syntax
- Maybe type inference?
- Infix table combinator functions? (
Table filter predicate)
--- SQL ---
SELECT * FROM USERS| ;requires graphics | |
| .code "main" | |
| main_v: | |
| jal scanDevices_v | |
| lb $0, [dbg_after_scan_dvcs.] | |
| li $t0, int_handler | |
| mts intv, $t0 | |
| li $t0, -1 |
| [ | |
| { "keys": ["super+left"], "command": "move", "args": {"by": "subwords", "forward": false} }, | |
| { "keys": ["shift+super+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} }, | |
| { "keys": ["super+right"], "command": "move", "args": {"by": "subwords", "forward": true} }, | |
| { "keys": ["shift+super+right"], "command": "move", "args": {"by": "subwords", "forward": true, "extend": true} }, | |
| { "keys": ["super+delete"], "command": "delete_word", "args": {"forward": true} }, | |
| { "keys": ["super+backspace"], "command": "delete_word", "args": {"forward": false} }, | |
| { "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
| { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": false, "extend": true} }, | |
| { "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} }, |
| (function(){ | |
| var resulta, resultb | |
| window.addEventListener('DOMContentLoaded', function () { | |
| resulta = document.querySelector('#result-a') | |
| resultb = document.querySelector('#result-b') | |
| resultc = document.querySelector('#result-c') | |
| var input = document.querySelector('input#input') |
| function readFully(req: http.IncomingMessage, cont: (data: string) => void) { | |
| var buffer = "" | |
| req.on("data", data => { | |
| console.log(`got data package: ${data}`) | |
| buffer += data | |
| }) | |
| req.on("end", () => { | |
| cont(buffer) | |
| }) | |
| } |
| package demo | |
| import demo.clang.CXCursorKind | |
| import scala.scalanative.native._ | |
| /** | |
| * Created by Kamil on 19.06.2016. | |
| */ | |
| @extern |
| With scala function of: | |
| @struct | |
| class Foo(val _0: Int, val _1: Int, val _2: Int, val _3: Int, val _4: Int) | |
| // More than 16 bytes | |
| def test(foo: Foo): Unit = { | |
| ... | |
| } | |
| it has to be converted to following signature |
| #define R 1.1 | |
| float wave(in vec2 uv, in vec2 center, in float radius) { | |
| vec2 s = uv - center; | |
| float r = length(s); | |
| float h = sin(r * 50.0 + float(iFrame) / 10.0) * 0.1 * (radius - r); | |
| if(r >= radius) | |
| return 0.0; | |
| else | |
| return h; |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <title>14</title> | |
| <script src="14.js"> | |
| </script> | |
| <style> | |
| #name, #surname { border: 1px solid black; } |
| (data (List a) | |
| (:: a (List a)) | |
| (Nil)) | |
| (def ;(-> a (-> a b a) (List b) a) | |
| (foldl i _ Nil) i | |
| (foldl i f (:: h t)) (foldl (f i h) f t)) | |
| (def ; (=> ((Numeric a)) (-> a a (List a))) |
Table filter predicate)--- SQL ---
SELECT * FROM USERS