Each media and format had a configuration file, it was inside of this file that variables and functions were defined. If you tried to call a function that was not defined in your context that part of the tree was removed from the output (figuring it was better to make the output than to fail). This also meant that you could branch and override functions and variables dependent on the media or input format.
Ask HN: Have you created a programming language and why?
231–240 of 247 posts
Re: Ask HN: Have you created a programming language and why?
#232Re: Ask HN: Have you created a programming language and why?
#233I think I'm going to have to though. I used to like C++ but I really am not a fan of the direction it's moving in. It used to be a simple "better C" that let you write abstactions over simple code that you could understand how
Re: Ask HN: Have you created a programming language and why?
#234I think I'm going to have to though. I used to like C++ but I really am not a fan of the direction it's moving in. It used to be a simple "better C" that let you write abstactions over simple code that you could understand how
Re: Ask HN: Have you created a programming language and why?
#235It has no intended adamtages other than to learn how a language is created.
Re: Ask HN: Have you created a programming language and why?
#236I made NewtonScript, starting in 1992. ( https://en.wikipedia.org/wiki/NewtonScript ) The other viable choice was to have application developers write everything for the Newton in C or C++. By giving them a much higher-level framework (Scheme/Self-like language + UI views/interaction + indexed object store) we were able to get more functionality into the product/ecosystem faster and more reliably. At least I think so…
I bought a Newton in 2007 or so, just to be able to play with NewtonScript.
Re: Ask HN: Have you created a programming language and why?
#237Earlier quoted context omitted.
Ditto. CoffeeScript made JS almost Ruby-level fun for me. I've now switched mainly to TypeScript, which is also great (so many fewer runtime errors!). But I still miss thin arrow functions, array comprehensions, the existential operator ... What I really want these days is CoffeeScript on top of TypeScript.
Same. Idiomatic Coffeescript was so much fun it gave me a borderline obsession with brevity. Array comprehensions also largely removed the need for lodash/underscore. Give me an optionally typed, ES6-flavored Coffeescript and I'll be a happy developer.
And, as you say, array comprehensions largely remove the need for each/map/filter etc, which also has potential for a nice performance boost.
Re: Ask HN: Have you created a programming language and why?
#238I play language designer in my free time, I have like ten languages buried in folders with thousands of abandoned projects. My recent endeavour was a language with only five constructs that would mimic mathematics in the way we program: = assign $ print @ loop ? condition ! else # definition/function So print hello world would be like: $ 'Hello world' Every single program in the whole universe can be easily translate…
That reminds me a bit of PILOT: https://en.wikipedia.org/wiki/PILOT
say 'hello world'
let list = [1,2,3]
for item in list: say item
def add(x,y): ret x+y
is? a=1 say 'ok' no? say 'wrong'
Easier for the compiler and for the human.Re: Ask HN: Have you created a programming language and why?
#239Re: Ask HN: Have you created a programming language and why?
#240I wrote a 'language' that essentially compiled down to several other languages (C++, PHP, Javascript were mostly implemented) but unlike e.g. Haxe, it didn't try to hide any of the underlying languages; instead, for parts that weren't abstracted by the language, you had to provide your own implementation blocks for each specific language. This basically made a file that was meant to be used from e.g. C++ and PHP a mi…