4 ms·
I really need to do a basic D -betterC project, just using it as a basic low level language, maybe with a dash of DbC. Probably with embracing some Oberon conce
by mhd 6y ago
I really need to do a basic D -betterC project, just using it as a basic low level language, maybe with a dash of DbC. Probably with embracing some Oberon concepts (static imports, single return etc.)
- crazypython 6y agoYou can use D with GC but manually deallocate memory. This let's one use the GC as a backup.
- WalterBright 6y agoThe D compiler has a switch where you can select the compiler implementation itself to use the GC or manual. This gives options when compiling very large projects (the compiler allows an entire project to be compiled at once, giving the benefits of total program optimization without needing involvement from the linker, this of course uses prodigious amounts of memory).
- qznc 6y agoRecreating Oberon in D sounds like an interesting blog post. Please write about it!
- pjmlp 6y agoOne thing that is needed for the proper experience is dynamic linking and strong type exports from the libraries. Otherwise, as idea for other languages that also want to explore the same OS concepts, make use of IPC like dbus, XPC, COM, with a name server able to translate Module.Command into calls. Then expose this as means to be called on the REPL, via mouse actions, supporting text as parameters, selected text, selected widget or window. Actually from my list above, the IPC tools are already there in modern OSes, but the idea is not properly explored across the whole stack.