5 ms·
There are N programming languages and M libraries (e.g., dates, file-formats, databases, data analysis method X). Currently, each language (Go, Rust, Python, Ju
by david_draco 4y ago
There are N programming languages and M libraries (e.g., dates, file-formats, databases, data analysis method X). Currently, each language (Go, Rust, Python, Julia), needs to reimplement each library from scratch, which is a huge effort and delays language readiness for users.
Maybe building another programming language can be accelerated by deriving its M libraries from another, using some kind of abstract libraries or translation methods, through a service similar to LSP.
- matklad 4y agoThat’s what deno is doing IIRC! They rely heavily on design work that went into web standards and Go standard library, and harness open-source community to deliver implementation.
- oblio 4y agoThat's in no way what he's suggesting and it's something every language in creation has done: getting inspiration from existing languages. He's saying about actual working code, something akin to universal libraries you could use from any language. Or maybe some auto-translation/hooking up of libraries from another language, through some sort of "library protocol".
- bartlomieju 4y agoBartek from Deno here, this is mostly true. The runtime heavily relies on the Web standards, while Go was a heavy inspiration for Deno's standard library (deno_std [0]) in the early days. Since then, we've been relying on Web standards even more and the standard library started seeing more modules added that were based on popular npm modules. On another note: huge thanks for rust-analyzer, not only is it my main daily driver, but we also used it as a reference for implementation of "deno lsp" - the language server that ships with Deno. [0] https://github.com/denoland/deno_std https://github.com/denoland/deno_std
- matklad 4y ago<3 I can't say I am a user of deno today, but my feelings about deno remind me my feelings about Rust circa 2015: it's not clear if the thing succeeds, but, if it does, that would be a huge boon for the whole industry, as finally "better is better" would take over "worse is better". Deno has all the potential to become the first really dependable scripting environment! So, I wish you luck and hope one day I'll migrate my jekyll+asciidoctor blog to deno :-)
- jcelerier 4y agoWorking on a subset of this with https://github.com/celtera/avendish https://github.com/celtera/avendish - C++ reflection makes some aspects of this problem very easy to solve ; while my lib focusses on media objects (audio / video / GPU processors with a control UI), the same concepts could likely be extended to a more general shared object ontology..