News for hackers. Stuff that matters.
Re:Racket2 Possibilities by breck on Monday July 22, 2019 @11:16PM (#20504144)
Disclaimer: I work on Tree Notation (http://treenotation.org/), (https://twitter.com/breckyunits/status/1153016840769007616).

Prediction: In 10 years the most popular programming languages in the world will not use the current BNF or () style syntaxes but instead will use Tree Notation (with Racket like "Language Oriented Programming" on top), OR will use some other "black swan" syntax that I haven't seen, that is even better than Tree Notation...

I think we're all going to learn that syntax does indeed matter, once machines are writing most of the code.

I'm willing to give even odds for that bet, if there is some type of charity betting site that supports that sort of thing, if anyone disagrees. (Even if you don't disagree, it would be silly to not take that bet for even odds, given fewer than 500 people are actively using Tree Notation today).

Re:Racket2 Possibilities by jcelerier on Tuesday July 23, 2019 @03:31AM (#20505091)
> Prediction: In 10 years the most popular programming languages in the world will not use the current BNF or () style syntaxes but instead will use Tree Notation

Prediction: in 10 years the most popular programming languages will still be C, Java, Python, Javscript, C++ and C#

Re:Racket2 Possibilities by juskrey on Tuesday July 23, 2019 @05:58AM (#20505562)
Re:Racket2 Possibilities by infogulch on Tuesday July 23, 2019 @01:58AM (#20504740)
This is pretty neat! It seems to be a kind of DSL for making DSLs. The new language is defined in a grammar file and files written in the language can execute directly by adding implementation code to the grammar definition in the form of snippets of js/python/etc associated with the kinds of syntax you define.

The syntax of everything is the same: a of tree of tokens. If that sounds like a broad definition, that's because it is. Afaict the only required syntax is that the tokens form a tree; your dsl can assign arbitrary meaning to the actual structure.

This might be something I could use at $work, I bet it would fit well into an automation framework. I feel like if I knew some lisp it would give me a different perspective on tree notation.

Re:Racket2 Possibilities by throwaway-d81 on Monday July 22, 2019 @11:29PM (#20504193)
You can try posting your bet here:

http://longbets.org/

Disclaimer: I only know of it because I was looking for something similar once.

Re:Racket2 Possibilities by breck on Monday July 22, 2019 @11:56PM (#20504298)
Oh, neat! I did not know longbets was an open platform.

I'll post something on there. It will actually be a good exercise, because I should clarify things like "no, I'm not predicting this will be more popular than Excel", which I would agree is a programming language.

Thanks!

Re:Racket2 Possibilities by boulos on Tuesday July 23, 2019 @01:48AM (#20504698)
Please do and link it here! (For posterity). Fwiw, unless you mean something much narrower than I interpreted your statement to mean, I’m taking the other side of your bet :).
Re:Racket2 Possibilities by skybrian on Monday July 22, 2019 @11:49PM (#20504268)
I'm interested in this kind of thing and followed the links, but I didn't learn enough to decide whether I like your tree notation or not. It might help to write a tutorial just explaining informally what the notation is and what the rules are for using it?
Re:Racket2 Possibilities by breck on Monday July 22, 2019 @11:55PM (#20504291)
Good feedback, thanks!

Created an issue for it: https://github.com/breck7/jtree/issues/25

Hopefully someone else will take up the challenge, as I find that in person here at the center, often my colleagues explain it better than I.

Re:Racket2 Possibilities by mbar84 on Tuesday July 23, 2019 @02:45AM (#20504915)
Very interesting. I was recently thinking that it would be nice to have a common language that would compile to many others (at least to a subset of many others).
Re:Racket2 Possibilities by nudpiedo on Tuesday July 23, 2019 @09:32AM (#20506569)
look at haxe language
Re:Racket2 Possibilities by _pmf_ on Tuesday July 23, 2019 @02:27AM (#20504847)
Probably the only notation that will work on mobile. Strange that so few projects deal with this.
Re:Racket2 Possibilities by strictusername on Tuesday July 23, 2019 @11:01AM (#20507257)
Do you understand the concept of abstract syntax trees? This already exists in every language and we specifically and deliberately moved away from it because it's not conducive to code.
Re:Racket2 Possibilities by nudpiedo on Tuesday July 23, 2019 @11:43AM (#20507619)
I think this library is more about a shared common AST representation in order to share some tooling around it and fast prototyping for DSLs. After I read the FAQ I agree with your sentiment, in the way it is documented and worded it sounds quite arrogant to be someone who just discovered the wheel.
Re:Racket2 Possibilities by thom on Tuesday July 23, 2019 @04:13AM (#20505225)
The rationale here reminds me of Eliezer Yudkowski’s Flare language.
Re:Racket2 Possibilities by agumonkey on Tuesday July 23, 2019 @02:51AM (#20504941)
tree rewriting / processing will also lead to a quite different programming world.

no more 'you thought you'd use regexp to solve one problem'