News for hackers. Stuff that matters.
Re:Zygomys – An embedded scripting language for Go by shakna on Thursday December 15, 2016 @05:39AM (#13183677)
An even less popular programming language is your justification?

Red does compare itself to LISP in many ways, true.

But Clojure, for example, is actually popular enough that places use it for real work, today.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @05:52AM (#13183733)
>Red does compare itself to LISP in many ways, true.

Not only compares, it does extend many things which Lisp failed to do when it became unpopular.

>But Clojure, for example, is actually popular enough that places use it for real work, today

Yes, and this is very good, because it gives many people idea that programming may be much better than they used to. My position here is that Clojure is only the beginning.

Re:Zygomys – An embedded scripting language for Go by shakna on Thursday December 15, 2016 @05:57AM (#13183748)
> Now we have much more powerful things, while you are still trying to catch up with lisps.

You're stated opinion seems to be that Clojure is playing catch-up, not that it is the beginning of something better.

Also, as someone who uses Red & Clojure, I'm curious why you think it's more powerful?

I would compare Parse, Red's most notable feature, with core.match from Clojure.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @06:09AM (#13183796)
>You're stated opinion seems to be that Clojure is playing catch-up

Not really, it was about Zygomys, Clojure did it thing long time ago and proved it has something to offer, like STM in the core of language.

>I would compare Parse, Red's most notable feature, with core.match from Clojure.

I don't know the internals of core.match, but can it change rules in runtime like this?

  red>> rule1: ['a]
  == ['a]
  red>> changer: [(append rule1 [| 'b])]
  == [(append rule1 [| 'b])]
  red>> parse [a a b b] [any rule1 [number! changer | ] any rule1]
  == false
  red>> parse [a a 1 b b] [any rule1 [number! changer | ] any rule1]
  == true
(the code is not idiomatic or good, it's just what I came up with to quickly demonstrate what I mean)
Re:Zygomys – An embedded scripting language for Go by shakna on Thursday December 15, 2016 @06:26AM (#13183853)
Well... Kind of.

Clojure is crazy about immutability, so it makes live modifying any variable painful.

However, core.match is usually used with a loop, so it should be possible with some nested lets.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @07:26AM (#13184096)
Ok, what I wanted to show is Red's parse is more than just pattern matching, since you can execute regular Red code in parsing rules, walk around the input and other things. You can check it's features here: http://www.red-lang.org/2013/11/041-introducing-parse.html
Re:Zygomys – An embedded scripting language for Go by ivanpierre on Friday December 16, 2016 @10:31AM (#13193897)
Variable, modifying... what the heck? You have a language that is crazy about mutability, it should make testing painful ;)