Better HN
topnewbestaskshowjobs
Log inSign up

_carl_jung

415 karma · joined Dec 22, 2017 (8y ago) · 138 submissions

Submissions

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

This is not possible if your password manager itself requires a password. Unless you mean "password managers don't work because someone might know the master password" which is true, but realistically the alternative is just using the same weak password all over the web, which is way worse.

comment 5y ago · link · parent

Password management is better, not worse, for security.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Thanks! It's Deno only I'm afraid. I'm interested in what would make it more useful for you as a Node project (so that I can gather info on the sorts of use cases that would be good).

6.

Show HN: Crsh – A JavaScript based command line shell(crwi.uk ↗)

9 points · by _carl_jung · 6y ago · 5 comments

comment 6y ago · link · parent

Thanks for this

comment 6y ago · link · parent

I don't understand this part. As far as I can tell, utility monopolies can only form with government assistance (i.e. lobbying).

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

I really enjoyed it too. Some HN commenters could do well to learn about opinions!

comment 6y ago · link · parent

In my opinion, this is simply an over-extended metaphor. Programming ultimately is not carpentry, and custom tooling is justifiable in many more cases.

comment 6y ago · link · parent

You can even export as PDF and print

comment 6y ago · link · parent

But then, everything we look at paints an image onto our retina, so using it as a hook for a headline feels disingenuous.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Do you have any links for the implications for commercial use? If I released a game made with PyGame, what's the gamble? I've seen examples of people using it commercially [0].

[0] https://www.reddit.com/r/gamedev/comments/16d5ak/is_pygame_o...

comment 6y ago · link · parent

Game programming is an area in which I feel benefits greatly from the use of global state.

comment 6y ago · link · parent

I don't remember stating otherwise.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

I'm out of my depth here as I've never studied information theory. I suppose there's a larger gap between the theory and the practical aspect of the title of this article than I first imagined!

comment 6y ago · link · parent

But the context in those countries is too different to ours to come to any meaningful conclusion about what should be allowed "here" (I'm assuming UK + US mainly).

comment 6y ago · link · parent

This raises what I view to be a falsification by counter-example of the original premise. If information (and not _the representation of_ information) has mass, then does a piece of uncompressed information weight the same amount as the compressed information?

Furthermore, information is related to interpretation. A string of bits may be an uncompressed text file, a set of numbers, a compressed image, etc. But it's always the same amount of bits. How can my interpretation of that set of bits affect its mass?

comment 6y ago · link · parent

You have to answer a quiz

comment 6y ago · link · parent

I'd earnestly like to hear the responses to this from the down-voters. I had the same thought and suspect there is a good reason not to use mixins.

One problem off the top of my head is run-time changing of components. An entity that inherits from multiple mixins can't inherit from new mixins (or lose existing ones) at runtime.

comment 7y ago · link · parent

What does it mean to be on a "24h 50m" sleep cycle? Does your sleep time progressively become later until you're nocturnal, then continue looping round until it returns to a "normal" night's sleep?

comment 7y ago · link · parent

For what it's worth, the principle objection I have to the Marxist position on wage and profit is the redefinition of the term "exploitation".

It muddies the argument because it enables a circular argument whereby the transaction of employment can be labelled as exploitative, where it's easy to defend against the claim of exploitation if the original definition of the word is preserved.

In other words, profit generation as it comes from an employer/employee relationship is Exploitative but not exploitative.

comment 7y ago · link · parent

You make a philosophical leap about rightful ownership when you say "unpaid wages". I don't agree with that leap.

Further, your definition doesn't include situations in which there is no employee (such as the one I gave).

It is more correct to say that the profit is the gains made to some agent in a market transaction.

comment 7y ago · link · parent

I invent (at the cost of $500) a programming tool that improves your output by 50%. This enables you to earn $5000 more per year than previously. You purchase that software for $1000, providing me a profit of $500.

Who's wages are unpaid?

comment 7y ago · link · parent

Not necessarily. The "lower framerate" in our fovea is not represented as a stuttering sequence of frames, but a blurry and smooth flow. Simply using a lower framerate would still be noticeable.

Unless you could engineer a display technology that could do this.

12345