News for hackers. Stuff that matters.
[dead]
Re:Zygomys – An embedded scripting language for Go by kaoD on Thursday December 15, 2016 @04:58AM (#13183544)
Not sure why I'm taking the bait but here I go:

> Now we have much more powerful things

Like what? Off the top of my head, Rust, Haskell and F# are probably the only ones that come close, and they're about as popular as the Lisps (i.e. not).

> you should have try to popularize lisp like 10-20 years ago.

Programmers want familiar syntax and infix notation while Lisps want homoiconicity. It's never going to happen.

It's funny because people fear and loathe Lisp's parenthesis, while after a month of using Lisp, you don't see parens anymore (they're mostly for the parser).

Re:Zygomys – An embedded scripting language for Go by harperlee on Thursday December 15, 2016 @05:11AM (#13183579)
> It's funny because people fear and loathe Lisp's parenthesis, while after a month of using Lisp, you don't see parens anymore (they're mostly for the parser).

With parinfer, you stop looking at the parens in about an afternoon, I guess, and start reading indentation as in python. At some points, you look at opening parens as alignment markers, and from time to time you need to close something before what is inferred, but always in the same line, I.e., you want:

    (Foo (bar) baz))
Instead of:

    (Foo (bar baz)))
But generally, it is just magic! And multiline parsing in your head is just gone.
Re:Zygomys – An embedded scripting language for Go by pjmlp on Thursday December 15, 2016 @07:02AM (#13183989)
> Programmers want familiar syntax and infix notation while Lisps want homoiconicity. It's never going to happen.

It was called Dylan, but then Apple canned the project.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @05:04AM (#13183560)
>Like what?

Like Rebol/Red.

>Programmers want familiar syntax and infix notation

Programmers wanted batch punchcards processing over timesharing interactive terminals, programmers wanted legacy and compatibility over innovation and modernization. Programmers wanted ugly write-compile-run-test in 70s terminal emulator stuff over live interactive graphical in-place debuggers. Face it, programmers are stupid and can't learn new technologies.

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 ;)
Re:Zygomys – An embedded scripting language for Go by kaoD on Thursday December 15, 2016 @05:07AM (#13183565)
> Like Rebol/Red.

Well, that was unexpected.

It's too late guys, you should have tried to popularize Forth like 20-30 years ago.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @05:10AM (#13183576)
>Forth

Why Forth? You just opened wiki Rebol article and first thing you saw was Forth, wasn't it?

Re:Zygomys – An embedded scripting language for Go by kaoD on Thursday December 15, 2016 @06:10AM (#13183799)
I'm certainly not familiar with Rebol/Red, but every single time I've been introduced to them as "modern incarnations of Forth", and AFAICR they conserve right-to-left function application and the concept of dictionaries as dialects of the language, don't they?
Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @06:24AM (#13183845)
Red is modern incarnation of Rebol, which is it's own unique language. It was influenced by Forth, true, but this is only influencing, Rebol has much more of it's own ideas than taken from others.
Re:Zygomys – An embedded scripting language for Go by keymone on Thursday December 15, 2016 @05:35AM (#13183663)
> Programmers wanted batch punchcards processing over timesharing interactive terminals, programmers wanted legacy and compatibility over innovation and modernization.

wow, really, all of them? that is amazing. tell me more!

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @05:48AM (#13183718)
>wow, really, all of them?

If all of them would do it, we wouldn't have this discussion now. Small amount, obviously, tries to make better stuff.

>tell me more!

First go and check out plan9, genera, smalltalk and rebol.

Re:Zygomys – An embedded scripting language for Go by keymone on Thursday December 15, 2016 @06:01AM (#13183771)
> Small amount, obviously, tries to make better stuff.

interesting! but how small? like maybe as small as amount of early lispers working on making better language? would that be a valid comparison?

> plan9, genera, smalltalk and rebol

done.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @06:27AM (#13183856)
>but how small?

No idea, I keep discovering stuff from past 30 years which I never even heard about, I can't imagine how many new technologies appear in our time.

>done.

So, do you find things programmers are using in their daily work good?

Re:Zygomys – An embedded scripting language for Go by keymone on Thursday December 15, 2016 @06:42AM (#13183914)
> So, do you find things programmers are using in their daily work good?

i find programmers using full spectrum from horrible to amazing. the reasons some people stay on lower end of that spectrum range from psychological to business constraints. i think more interesting question is why is it that while considering yourself being somewhere in the upper end of the spectrum you decide to shit on lisp, which arguably is the starting point of everything you deem good.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @07:47AM (#13184197)
>you decide to shit on lisp

I don't shit on lisp, I've been for lisp since I discovered it many years ago. I'm against new worthless implementations presenting lisp as language only capable to parasite on other platforms, without having it's own real thing.

To me lisp is an idea, which ironically found it's best implementation (from what I've seen so far) in Rebol.

Re:Zygomys – An embedded scripting language for Go by keymone on Thursday December 15, 2016 @08:08AM (#13184313)
> I'm against new worthless implementations

could it be you haven't yet realized it's actually not worthless?

> only capable to parasite on other platforms

would you elaborate what exactly makes clojure a parasite on jvm?

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @08:24AM (#13184377)
>could it be you haven't yet realized it's actually not worthless?

could be, I didn't even run it, but the problem is your implementation limited by underlying platform and if it wasn't made with lisp in mind (and this is the case) result will have tons of limitations.

>would you elaborate what exactly makes clojure a parasite on jvm?

Maybe it's ok for JVM, but I can tell you what makes it less lisp (and the reason is parasitism): absence of tail recursion.

Re:Zygomys – An embedded scripting language for Go by keymone on Thursday December 15, 2016 @08:31AM (#13184428)
> tons of limitations

but that would only matter if those limitations outweighed the advantages of developing with lisp?

> absence of tail recursion

so from "clojure is worthless parasite on jvm" we're down to "clojure is a lisp which i haven't tried yet but it's on jvm so i think it lacks tail recursion"

good enough, peace.

Re:Zygomys – An embedded scripting language for Go by mapcars on Thursday December 15, 2016 @08:41AM (#13184482)
>but that would only matter if those limitations outweighed the advantages of developing with lisp?

Yes, and I doubt this Zygomys can reload code in runtime because of limitations of it's platform.

>so from "clojure is worthless parasite on jvm" we're down to "clojure is a lisp which i haven't tried yet but it's on jvm so i think it lacks tail recursion"

Nope, I wasn't talking about clojure.