_carl_jung's comments

_carl_jung | 5 years ago | on: Trump's YouTube Account Suspended

I think this is a minimization of the harmful nature of statements made by Donald Trump. We're not talking about not liking his political views. No, we're talking about dangerous encouragement of violence.

It's not just that YouTube and Twitter think Trump is mean.

_carl_jung | 5 years ago | on: Show HN: Crsh – A JavaScript based command line shell

Sorry for the late response.

> 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 | 6 years ago | on: The internet should be a public utility

Here's a question I have about these types of frustrating monopolies, and I'd love a point towards a book or something that can explain.

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

The pursuit of sustainable living and the pursuit of a multi-planetary existence are parallel endeavours, not serial ones. Perhaps the view from Mars will instil a renewed perspective on our dependence on Earth, and teach us lessons on ecological management via terraforming.

_carl_jung | 6 years ago | on: Barnes and Noble’s new plan is to act like an indie bookseller

For me, no formal metric can capture what I get out of buying books at an independent book shop. I feel like I'm trading with an old currency, only the books I own and buy are a reflection of my own character, or even soul.

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: Pygame Zero: Creating games without boilerplate

So there are numerous deployments of "successful" games using PyGame, and no court cases by the creators/maintainers of PyGame towards those game developers? I'll take my chances.

I don't see what PyGame's motivation would be to open such cases.

_carl_jung | 6 years ago | on: Testable theory suggests information has mass

Doesn't the very definition of "lossless" depend on interpretation? If lossy compression alters its mass, but lossless doesn't, doesn't it depend on the interpretation of "lost" information?

As I said to the above poster I don't know much about this, so hope this isn't an off-base question.

page 1