Re:GPT-4 Designed a Programming Language
by UncleEntity on Thursday March 16, 2023 @03:30AM
(#35179198)
> I like the use of the arrows in the function definitions though :) I've seen that somewhere before…
Python type hints probably.
I (ab)used them for good effect when I was fiddling around with the spark earley parser that used to be part of the python build system.
Also haskell signatures, for example.
lol, of course. I hadn't realised it is so long since I wrote any Haskell...
It actually comes from math notation and was used in ML-type languages long before python.
Re:GPT-4 Designed a Programming Language
by mikrotikker on Saturday March 18, 2023 @03:53AM
(#35207091)
But it could be a good starting point for a group of humans to take, polish and maintain as a new language.
Not sure why need any new languages when we have the perfection that is Golang tho.
But then applying them directly into an example falls down a bit. The language is a bit of a mismash and parts of it might not work semantically. The use of actors looks a bit out of place, and raises a lot of questions about how the memory management and scheduling is working under the hood. Despite the bold aims in the tenents thre is nothing in the language exposed so far that addresses them: why would the language produce more modular code in the large? what features of the syntax would increase the level of abstraction in code written? etc etc
Overall this would warrant a (barely) passing grade by modern standards, i.e. it can regurgitate the material succesfully but without demonstrating any deep understanding. I find the result quite interesting as it demonstrates how much of what we judge to be quality is actually fitting a particular pattern of response (w.r.t a specific field of study) rather than exploring the material more deeply.
I like the use of the arrows in the function definitions though :) I've seen that somewhere before and will be "appropriating" it for the project that I'm currently working on.