4 ms·
Given how fast the D compiler is, this might be a nice alternative to something like LuaJIT for an embedded scripting language in other apps.
by docandrew 3y ago
Given how fast the D compiler is, this might be a nice alternative to something like LuaJIT for an embedded scripting language in other apps.
- WalterBright 3y agoMany people do use D as a scripting language, replacing their use of bash. D programs can be compiled and run in one step. #!/usr/bin/env rdmd import std.stdio; void main() { writeln("Hello, world with automated script running!"); } > ./myprog.d Hello, world with automated script running! https://dlang.org/rdmd.html https://dlang.org/rdmd.html
- thechao 3y agoClassically, you wait until your name is said three times, before appearing before the supplicant!
- tripleo1 3y agoDo you also have: 1. Statically linked executables (essential but not crucial) 2. Dependency management (import tripleo.rtfm from "git:...#1234567") 3. A good AST API (jdt/roaster, javapoet, etc) 4. Tooling (cf spoon/soot) (I approve this comment, even given it's limited usefulness/expressivity)
- WalterBright 3y ago1. yes 2. no 3. that's what this topic is about 4. yes
- bachmeier 3y ago> 2. Dependency management (import tripleo.rtfm from "git:...#1234567") Not built into the compiler, but Dub, the official package manager distributed with the compiler, should be what I think your concise statement is referring to.
- p0nce 3y agoThis is what HipremeEngine does for example. https://github.com/MrcSnm/HipremeEngine https://github.com/MrcSnm/HipremeEngine