chalsprhebaodu

Joined 3 years ago

Karma
136
Submissions
42
Member since
Sep 28
View on Hacker News

Recent submissions

Comment · 2 years ago
Religiously.
Comment · 2 years ago
I’ve commented it before, and surely it’s something I’m doing wrong, but I cannot believe system prompts or GPTs or any amount of instructing actually works for people to get ChatGPT to respond in a certain fashion with any consistency.

I have spent hours and hours and hours and hours trying to get ChatGPT to be a little less apologetic, long-winded, to stop reiterating, and to not interpret questions about its responses as challenges (i.e when I say “what does this line do?” ChatGPT responds “you’re right, there’s another way to do it…”).

Nothing and I mean NOTHING will get ChatGPT with GPT-4 to behave consistently. And it gets worse every day. It’s like a twisted version of a genie misinterpreting a wish. I don’t know if I’ve poisoned my ChatGPT or if I’m being A/B tested to death but every time I use ChatGPT I very seriously consider unsubscribing. The only reasons I don’t are 1) I had an insanely impressive experience with GPT-3, and 2) Google is similarly rapidly decreasing in usefulness.

Comment · 2 years ago
1. No one has to have made that specific claim to warrant something be done.

2. Pushing screens to schools may have been accepted under the impression they weren’t worse than learning on paper.

Comment · 2 years ago
LiberateD

FreeD

Comment · 2 years ago
A malicious npm package created by the attacker specifically crafted to open up a port that listens and executes commands and otherwise untrusted or unverified code on the victim’s machine.
Comment · 2 years ago

    function* operation() {
      //@ts-expect-error `string` is not assignable to `number`!
      let count = yield* createString();
      return count.toExponential()
    }
Is this a typo? How does the compiler know that count should be a number?
Comment · 2 years ago
> This is great news now that the industry phased out physical **audio** connection on phones in favor of wireless.

I recognize that there’s still wired audio connectors but you know full well that the experience is not great because the industry wanted to remove audio jacks.

Comment · 2 years ago
Take this from someone who has been down this road: you are way over-thinking this.

Until you accept this, you will be holding yourself back as a JavaScript developer.

If you need objects with encapsulated state and methods, use classes.

OOP does not magically introduce baggage or complexity.

Your proposed solution is still OOP. Coming up with your own OOP framework will introduce baggage and complexity.

Classes are highly optimized in modern JS engines.

Classes can be transpiled to performant code for legacy JS engines.

There are times when classes are not the right choice, but avoiding classes when they’re the obvious right choice is a clear indicator that a developer is unwilling to actually learn JavaScript.

Edit:

Your example code also has a bug, where your methods don’t actually mutate the properties of the returned object.

Please take the leap and just learn to use JavaScript classes!

Comment · 2 years ago
Is this a tangential question? The OP suggests that there’s a utility to piracy beyond ideological reasons and just getting stuff for free. In other words, the categories you posed are not mutually exclusive.
Comment · 2 years ago
They explain the 0-runtime pretty thoroughly.
Comment · 2 years ago
Node builds on top of V8, Chromium’s JS engine, which has JIT, which allows for some optimizations that aren’t as easy or obvious in a simple bytecode interpreter.
Comment · 2 years ago
You need a GitHub account but you don’t need to use GitHub otherwise (e.g. for source control) in order to use Copilot.
Comment · 2 years ago
I’d shorten it to just HTML at that point, where the H is short for HTML:

HTML: Turing-complete Machine Language

Comment · 2 years ago
Most things learned don’t provide strict tools to enforce that you don’t use old practices where better modern practices exist. Do you question what the purpose is of learning most things?

Also, there are tools to look for old practices and suggest modern ones.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton