News for hackers. Stuff that matters.
Re:Closh – Bash-like shell based on Clojure by sillysaurus3 on Wednesday November 01, 2017 @03:21PM (#15604643)
This needs freakin' Node.js.

Yeah, that's an old sentiment. I used to echo the same thing, but it's worth coming to terms with the fact that node is a pretty good platform to build on.

Re:Closh – Bash-like shell based on Clojure by pwinnski on Wednesday November 01, 2017 @05:24PM (#15605606)
It may be old, but it's good and true.

There are zero things I want my shell to do which depend on as much tooling as Node provides.

I want a compiled native binary with as few dependencies as possible for the shell I'm going to use in single-user mode with very few resources available.

Re:Closh – Bash-like shell based on Clojure by cies on Wednesday November 01, 2017 @05:40PM (#15605717)
Hi five grandpa! Pepperidge farm remembers :)
Re:Closh – Bash-like shell based on Clojure by cies on Wednesday November 01, 2017 @03:37PM (#15604776)
Could not agree less. It's not totally bad, but for sure not good. I prefer:

* compile to native binaries

* many ways to do concurrency (instead of async all the way)

* a serious language (not created-in-10-days JS)

Node is really step back for me, coming from Ruby and the JVM.

Re:Closh – Bash-like shell based on Clojure by giantsloth on Wednesday November 01, 2017 @03:53PM (#15604880)
JavaScript looks nothing like the “created in 10 days” version to which you speak. I would highly suggest you take an uncomfirmation(?) biased look at the language as it is now. Asyncs simplicity is arguably a reason why it’s a good platform to build off of. I agree I would rather have a single binary, and node may not be the best platform for shells on this point.
Re:Closh – Bash-like shell based on Clojure by cies on Wednesday November 01, 2017 @05:39PM (#15605710)
> JavaScript looks nothing like the “created in 10 days” version to which you speak.

It has improved, sure. But not only in the direction that makes me happy. But you cannot undo some bad design choices, without it becoming a different language.

> I would highly suggest [...]

I write JS at times. It hurts badly. Not everyone feels it. Maybe coming from PHP or Perl it does not even hurt that much. But after writing some Haskell and Elm lately, the pain got more intense.

> Asyncs simplicity is arguably a reason why it’s a good platform to build off of.

Not having choices is never a good thing in my book. And I do not think that JS does async particularly well. So much line noise when it comes to working with promises.

No fan here.

Re:Closh – Bash-like shell based on Clojure by yellowapple on Wednesday November 01, 2017 @07:38PM (#15606523)
"Maybe coming from PHP or Perl"

I don't know about PHP (my experience with it is limited), but coming from Perl, Perl is a breath of fresh air in comparison.

Then again, to me Haskell makes even the worst JAPH-style Perl one-liners look readable in comparison, so maybe I'm not the best judge of language design.

Re:Closh – Bash-like shell based on Clojure by masukomi on Wednesday November 01, 2017 @05:48PM (#15605787)
i'm with you @cies JS has had some of its edges smoothed out but it's not a great language and its answer to parallelism and concurrency is crap IMNSHO. And i'm someone who came from perl way back in the day.
Re:Closh – Bash-like shell based on Clojure by mateuszf on Wednesday November 01, 2017 @04:00PM (#15604932)
> many ways to do concurrency (instead of async all the way)

Though core.async makes async programming quite nice

Re:Closh – Bash-like shell based on Clojure by cies on Wednesday November 01, 2017 @05:34PM (#15605663)
> Though core.async makes async programming quite nice

Sure you can paint your cage gold, and it will look nicer. But it remains a cage. I want to choose, especially when it comes to how I do my concurrency.

Re:Closh – Bash-like shell based on Clojure by ams6110 on Wednesday November 01, 2017 @04:25PM (#15605139)
Node may be OK for some things but it's not standard. I don't want to use a shell that I won't find anywhere but my own workstation. I want to use a shell that I will find on 99% of any systems I have to manage or work on. Even Python doesn't meet that bar and it's been around a lot longer than Node.
[dead]
Re:Closh – Bash-like shell based on Clojure by cies on Thursday November 02, 2017 @03:03AM (#15608391)
Yeah. I have the feeling people like Node because they know JS, and Node gives them JS. That's it.
Re:Closh – Bash-like shell based on Clojure by gungoman on Thursday November 02, 2017 @04:44AM (#15608758)
They worship Node because it gives them an earning opportunity while not having to put in any real effort in learning and thinking in my opinion. If C# was made mandatory for example I imagine this lets kode trend would die pretty quickly.