D
Deleted member 63539
Guest
Shell is too hard for me. I'm porting a JavaScript interpreter could be run with
I come from Java, know a bit of C. I dislike JS, too. But if having to choose between shell and JS, I prefer JS. I like a full language that could be used as itself without relying on extra small utility with awful syntax like sed, awk to done the job. Yes, I know it's against the Unix philosophy. But I don't care about philosophy anyway.
On Windows, I used Thinbasic. Is there anything like that on Unix or we forced to stick with the Unix philosophy? I guess it's python.
#!/usr/bin/env js
, it's written in C, it's small and fully support the ES2020 specification. The real value of it is it's a real interpreter, doesn't compile to C and relying on C compiler to compile and run the binary. That make it could be used like python and as a real scripting solution.I come from Java, know a bit of C. I dislike JS, too. But if having to choose between shell and JS, I prefer JS. I like a full language that could be used as itself without relying on extra small utility with awful syntax like sed, awk to done the job. Yes, I know it's against the Unix philosophy. But I don't care about philosophy anyway.
On Windows, I used Thinbasic. Is there anything like that on Unix or we forced to stick with the Unix philosophy? I guess it's python.