Live data from Hacker News

A language that compiles to Bash and Windows Batch

github.com

11–20 of 148 posts

Re: A language that compiles to Bash and Windows Batch

#11
post #4
post #2

Looks nice but wouldn't you just use something like Python nowadays?

The "Why not Python/Ruby/Node.js/Lua" section lists 3 reasons the author developed this language...

Bullet 1 says "None of them is preinstalled on all platforms", but OPAM isn't universally preinstalled either.

Re: A language that compiles to Bash and Windows Batch

#13
post #4

Earlier quoted context omitted.

The "Why not Python/Ruby/Node.js/Lua" section lists 3 reasons the author developed this language...

Bullet 1 says "None of them is preinstalled on all platforms", but OPAM isn't universally preinstalled either.

You can build your scripts to a machine that has OPAM and distribute them to one that doesn't.

Re: A language that compiles to Bash and Windows Batch

#14
post #4

Earlier quoted context omitted.

The "Why not Python/Ruby/Node.js/Lua" section lists 3 reasons the author developed this language...

Bullet 1 says "None of them is preinstalled on all platforms", but OPAM isn't universally preinstalled either.

OPAM is only needed on the computer you develop the script. Actually you guys shouldn't be so lazy to just write something without reading the README.

Re: A language that compiles to Bash and Windows Batch

#16
post #4

Earlier quoted context omitted.

The "Why not Python/Ruby/Node.js/Lua" section lists 3 reasons the author developed this language...

Bullet 1 says "None of them is preinstalled on all platforms", but OPAM isn't universally preinstalled either.

but you don't need opam to run the compiled scripts...

Re: A language that compiles to Bash and Windows Batch

#17
post #10

Earlier quoted context omitted.

I don't think windows comes with python installation.

It also doesn't come with any of the tools bash is a glue for, about the only reason one uses bash. At least with Python I can write my own grep and so on, and piping isn't so bad with coroutines and generators.

I think you missed the point of this language. You write code in this language, and then you compile it to get Bash for Linux and Batch for Windows.
Post reply on HN