Better HN
topnewbestaskshowjobs
Log inSign up

lennoff

139 karma · joined Jul 19, 2014 (12y ago) · 28 submissions

Submissions

comment 1mo ago · link · parent

Can't we settle somewhere in the middle? Like occasionally sleeping an hour longer, but never shorter?

comment 3mo ago · link · parent

Sometimes you don't need an _exact_ solution. approximation of the traveling salesman problem exists for the metric version, it's O(n^3), and produces a result that's not worse than 50% of the optimal result, and for the general case O(n^2) algorithm exists that produces a result that costs at most twice the optimal result.

comment 4mo ago · link · parent

wow, i checked the documentation, and you're right. the type is indeed poorly named!

comment 4mo ago · link · parent

I disagree with the timestamptz advice. I tend to use timestamp (without the timezone), this forces me to use UTC everywhere, so I'm not even tempted to use anything else. I work in fintech, and so far whenever i saw someone storing datetimes with an associated time zone, it always ended with a disaster.

comment 4mo ago · link · parent

afaik before the final sampling, every "next" token has a probability, so theoretically it could select the 10 most likely tokens (based on some kind of sampling algorithm), but you'd end up with exponentially many output-sequences, so nobody does that.

comment 4mo ago · link · parent

i think it actually makes sense, an LLM just imitates human communication, which happens to be useful from time to time.

comment 1y ago · link · parent

keep in mind that we have "vibe coding" now, where the goal is exactly to _not_ have a human in the loop (at least not constantly).

comment 1y ago · link · parent

It's fun to theorize about an alternate universe where JavaScript has a LISP-like syntax (Brendan Eich originally wanted "Scheme in the browser"[1], so this isn't so far-fetched!). Indeed, `interpret` sounds like a LISP macro that can "partially evaluate" code (so someone else, ie. the browser can continue to evaluate it).

[1]: https://brendaneich.com/2008/04/popularity/

comment 1y ago · link · parent

It seems like that the author by using JSX to express code directly as an AST re-invented LISP? See Greenspun's tenth rule[1].

[1]: https://wiki.c2.com/?GreenspunsTenthRuleOfProgramming

comment 3y ago · link · parent

How can you ban AI? It's literally designed to produce text that's indistinguishable from text that was produced by a living human being.

comment 3y ago · link · parent

It's sad to see that Web Crypto[1] does not support Ed25519 (yet), only RSA and ECDSA for asymmetric signatures.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...

comment 4y ago · link · parent

Because of the company VPN, I usually teleport to Israel, and I have absolutely no idea how to change the language on a right-to-left layout with a Hebrew alphabet...

comment 4y ago · link · parent

I guess I'll mint an NFT that's going to be a screenshot of this HN thread...

comment 5y ago · link · parent

Slightly related question: is there a plug-in that can color my code based in scope instead of syntax?

comment 5y ago · link · parent

Tangentially related question: could Nuitka target WebAssembly, given that according to their overview page, they translate Python into C? Usually when it comes to Python -> WebAssembly, the biggest problem is the lack of GC in the WebAssembly spec (as far as I understand), and I'm wondering if this would be an issue for Nuitka as well...

comment 5y ago · link · parent

I think the key takeaway is to never believe when someone says "Don't worry, you'll get promoted in no time".

comment 5y ago · link · parent

Is a CS degree important nowadays? I do have one, but literally no one mentioned or asked about my education during an interview, ever.

comment 5y ago · link · parent

Oh, it does... It generates code that's vulnerable to SQL injections, XSS, etc. It was trained on such code! (hopefully this will improve)

comment 5y ago · link · parent

Iteration protocols[1] are also nice (`Symbol.iterator`[2] and `Symbol.asyncIterator`[3])

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[2]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[3]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

comment 5y ago · link · parent

When you evaluate a form deep in a function, how do you handle variables that are defined "outside"? How can you evaluate such expressions?

comment 5y ago · link · parent

Well, how can we teach copilot to avoid raw string interpolation in such cases? Sure, some people will correct it, and the AI might improve, but I suspect that the majority of the developers will never notice it, and that'll just reinforce the AI's bad habits.

comment 5y ago · link · parent

So black holes can't evaporate? How does Hawking radiation works if the back hole are has to stay the same?

comment 8y ago · link · parent

try it with https://github.com/m1el/woscope-music/blob/master/oscillofun...

comment 9y ago · link · parent

How exactly is this distributed? The readme isn't really useful...

25.

Heuristic Analysis UX in the design process(blog.intellyo.com ↗)

3 points · by lennoff · 9y ago · discuss

26.

UX and Psychology go hand in hand – How Gestalt theory appears in UX design?(blog.intellyo.com ↗)

2 points · by lennoff · 9y ago · discuss

27.

Semantic Versioning Works Just Fine(medium.com ↗)

2 points · by lennoff · 12y ago · discuss

28.

HTML Canvas in the terminal(github.com ↗)

78 points · by lennoff · 12y ago · 12 comments