3 ms·
I did something similar. I needed the C and C++ libraries plus compiler but hated the languages. Used BASIC-like 4GL's for their power and prototyping speed. So
by nickpsecurity 11y ago
I did something similar. I needed the C and C++ libraries plus compiler but hated the languages. Used BASIC-like 4GL's for their power and prototyping speed. So, I just made a knockoff of a BASIC in LISP with naive compilation to C or C++. In dev mode, it just executed functions instantly as LISP. Separate mode generated code from same LISP-BASIC. Added 4GL generators as macros. Got extra benefit of interactive development and incremental compilation. Aside from first integration of libraries, I got the benefits of C/C++ without any of its pain in most cases. Ultra-fast development, too, with few lines of code for common application types.
I miss that tool. Lost it in a triple HD failure along with the others. Closest thing I've seen to my approach is iMatix's combo of DSL's and mini-4GL-for-C for more productive, correct, C-language applications. Racket has potential to exceed anything I did and for more languages if applied wisely. It's main option if I try to rebuild my tool.
Btw, what would I call a tool that combines LISP macros, 4GL features (eg DSL's, generators), C or C++ data-types, and auto-generation of C code? It doesn't necessarily need LISP syntax: one prototype used Tcl style & final looked like BASIC w/ compatibility for BASIC tools. It fits as a systems language, a 4GL, a LISP, and a C/C++ superset all at once.