_carl_jung | 5 years ago | on: Trump's YouTube Account Suspended
_carl_jung's comments
_carl_jung | 5 years ago | on: Ask HN: Why aren't one-time sign in links more popular for authentication?
_carl_jung | 5 years ago | on: Ask HN: Why aren't one-time sign in links more popular for authentication?
_carl_jung | 5 years ago | on: Show HN: Crsh – A JavaScript based command line shell
> execute relatively small snippets of shell code/one-liners as part of an asset management pipeline without having to "shell-out" and invoke an external process
This is indeed a small part of the value of my shell, though I wouldn't view it as the primary reason. I'm trying to make a nice experience for an interactive command line shell first, then will think about scripting use cases.
Blurring that line between shell + scripting is my intention, so it would be good to capture your case here at some point.
> Requirements for shell control constructs are modest, but piping and redirection should work, as well as limited shell var/macros expansion, and maybe if/then.
I'm struggling to understand one detail of your use case here. Is this a script (stored as some e.g. .js file), or something you'd be executing interactively? If the former, my shell does have as part of its library a suite of tools for executing shell commands (including piping + redirect) from within the Deno runtime. That would make something like the following possible:
const jsFilesInDirectory = await exec('ls | grep .js');
if (jsFilesInDirectory.includes('index.js') {
// some logic
}The above is also strikingly similar to shelljs, but my solution differs in a key way: where shelljs is re-implementing many commands, I've developed logic for parsing and evaluating any shell-like "pipe-separated" commands.
In any case, the primary intention of my project is to create an interactive shell, not a scripting language. That said, it would be possible to tease out and reproduce my logic to parse and execute piped commands in Node.js, to allow for a slightly more capable "shelljs" clone.
Hope that helps.
_carl_jung | 5 years ago | on: Show HN: Crsh – A JavaScript based command line shell
_carl_jung | 6 years ago | on: The internet should be a public utility
_carl_jung | 6 years ago | on: The internet should be a public utility
_carl_jung | 6 years ago | on: The internet should be a public utility
Let's say I have a bunch of money (or funding) for a big new internet provider that could easily outperform the existing provider. What makes it so hard to do it?
I hear complaints (and complain myself) about seemingly unfair pricing and slow speeds. The tech is there to make > 100mb internet, why isn't it more widespread? Surely consumers are willing to pay for a competitor that can provide it.
_carl_jung | 6 years ago | on: Elon Musk’s plan to build one Starship a week and settle Mars
_carl_jung | 6 years ago | on: Barnes and Noble’s new plan is to act like an indie bookseller
When I lend or trade a book with a friend, it's a transaction using those same fragments of our souls and we grow slightly closer. We now have a shared experience in those books and each understand each other's view of the world a little better.
Reading might be a largely solitary experience, but the passing of a book from one pair of hands to another achieves a communication far beyond reading a review or even a personal recommendation. Somehow the mass of the book itself carries with it a greater weight to the recommendation.
_carl_jung | 6 years ago | on: Man built a bunker under Hampstead Heath and lived in it for two years
_carl_jung | 6 years ago | on: Shit – An implementation of Git using POSIX shell
_carl_jung | 6 years ago | on: Simple text editor has over 15k monthly users
_carl_jung | 6 years ago | on: Bosch Smart glasses: A tiny laser array paints images directly onto your retina
_carl_jung | 6 years ago | on: Pygame Zero: Creating games without boilerplate
I don't see what PyGame's motivation would be to open such cases.
_carl_jung | 6 years ago | on: Pygame Zero: Creating games without boilerplate
[0] https://www.reddit.com/r/gamedev/comments/16d5ak/is_pygame_o...
_carl_jung | 6 years ago | on: Pygame Zero: Creating games without boilerplate
_carl_jung | 6 years ago | on: Banning facial recognition is missing the point
_carl_jung | 6 years ago | on: Testable theory suggests information has mass
As I said to the above poster I don't know much about this, so hope this isn't an off-base question.
_carl_jung | 6 years ago | on: Testable theory suggests information has mass
It's not just that YouTube and Twitter think Trump is mean.