Better HN
topnewbestaskshowjobs
Log inSign up

debugnik

2,570 karma · joined May 8, 2019 (7y ago) · 1,261 submissions

Submissions

comment 3y ago · link · parent

First, I specifically said that textmate takes less effort for "the most basic highlighting", that would be keywords, literals, comments, etc. Trying to encode a CFG in it would obviously be painful, but why would you? Use an actual parser at that point, but you might as well use a correct one.

Second, there's this idea that compiler parsers are inherently slow and require a full build to use or something. As if tree-sitter parsers were using some magic tech unavailable to compilers, and most new ones weren't modular or didn't offer APIs. It's not even hypothetical, increasingly more modern languages have semantic highlighting in real-time as part of the toolchain.

And in fact, I actually wanted to use that tech in a compiler, I said I tried to use tree-sitter for one, but that's where my big issue with tree-sitter came in: It would return parse trees that blatantly didn't match the grammar I wrote, and not mark them as bad syntax in any way. That's not error recovery, that's swallowing errors. If it does that, I'd rather work on making toolchain parsers better than fighting tree-sitter.

Even the "run the parser on the editor" part is solvable, since tree-sitter parsers are being shipped as WASM. A WASM interface for running possibly incremental parsers (that tree-sitter would also use) sounds more interesting, really.

comment 3y ago · link · parent

No, I specifically said "accept invalid syntax but not mark the parse trees as bad". Tree-sitter is supposed to accept invalid syntax, yes, but also tag the nodes as such. And at the time it seemed upstream didn't intend to fix the edge cases where it fails to do so, it just gave syntax trees that didn't match the grammar.

comment 3y ago · link · parent

Tree-sitter grammars take more effort than textmate ones for the most basic highlighting, but provide less accurate parse trees than a compiler could use for more advanced features and highlighting. I understand what they were going for but I don't "get" the trade-off.

At least as long as the parse trees are inherently worse: Even ignoring context-dependent grammars, last time I checked tree-sitter parsers had many edge cases in which they'd accept invalid syntax but not mark the parse trees as bad, which makes them unsuitable for compiler use.

comment 3y ago · link · parent

> In the year 2025, Sega is in crisis, with only a 3% share of the market

I guess that sounded pessimistic back then.

comment 3y ago · link · parent

Stricly speaking, F# can be used in scripts too, which is where I think you've taken that syntax from. Ionide however is quite broken when writing scripts (or anything else) though.

comment 3y ago · link · parent

F# has largely moved back to PackageReference, since package versions can now be managed centrally across projects, and F# scripts can now reference NuGet dependencies directly.

comment 3y ago · link · parent

The builtin `str` regex library is obsolete anyway, most people use `re`[1], or sometimes bindings for pcre or Google's re2.

[1]: https://ocaml.org/p/re/latest

comment 3y ago · link · parent

There's also no agreement between Pinterest and the actual copyright owners of most of their content, so much reposted art without even credit or a link to the source.

Plus, LAION is just an index, whereas Pinterest actually hosts it.

comment 3y ago · link · parent

LLVM? Pretty sure they scrapped that for being slow, BeamAsm is a JIT written from scratch.

Edit: It actually uses part of AsmJit, not quite from scratch, my mistake.

comment 3y ago · link · parent

And yet HN automatically amputates title patterns that the mods consider clickbait, even if most of the time it just makes the title unintelligible or misleading.

comment 3y ago · link · parent

Giving them an environment in which they don't have access to the AI, I guess: Photos must be signed by the camera firmware, digital art must be made with approved tools on a locked-down device or web VM, etc.

comment 3y ago · link · parent

Galaxy also has an SDK that devs can choose to require for their game; if they don't it's for lack of adoption.

Their docs do admittedly ask devs to make integration optional for the user, but their definition of optional includes "no multiplayer" as well.

comment 3y ago · link · parent

Edit: Nevermind, apparently they already did claim it.

comment 3y ago · link · parent

Because it's been part of ECMAScript since ES 6 but still not implemented. The only browser supporting it is Safari, I think.

comment 3y ago · link · parent

Only for SafeFileHandle, which is actually portable and usable for random-access IO since .NET 6. The namespace is historical.

comment 3y ago · link · parent

> People feel uneasy and judged if someone refuses to drink alcohol with them

I always read this on HN but I've never cared, or met any adult that seemed to care, when only a few of us drink beer in a group. Is this a US/Anglosphere thing maybe?

comment 3y ago · link · parent

> a hoax last month about the algorithm being tweaked to make everyone view Elon’s tweets

Didn't this just reveal that they're A/B testing on Musk's tweet performance? At the very least they're avoiding regressions, and I guess any incidental improvements to it won't be reversed, so isn't it fundamentally the same? Unless we're taking the word "everyone" literally, I guess.

comment 3y ago · link · parent

Donations go to Mozilla the non-profit, not to Mozilla Corporation which is the one maintaining Firefox. There's no way to give money for Firefox development other than spending on the Corp's side-services.

comment 3y ago · link · parent

> What if you fail to renew your driver's license, passport, professional certification, homeowner's/renter's insurance and/or refilling your prescription for a life-saving drug?

You just renew them late. There's a risk that you'll need them right then, sure, but generally those mistakes don't lock you out of fixing them for the future. However, a domain is easily irrecoverable.

comment 3y ago · link · parent

> Even steam allows returning a game in 14 days

I believe that's their own policy, digital goods that are consumable immediately can be sold with a renounce of your return period.

comment 3y ago · link · parent

Aside from the obvious fact that replacing the Stdlib with Base would break existing code, Base has an unstable and quite opinionated API and isn't tested on all targets OCaml supports (Jane Street is looking to drop support for 32-bit targets altogether). There would be a lot of tension to adopt it.

Meanwhile, the built-in Stdlib finally started to acquire much needed functions and modules during the late 4.x releases. My biggest worry is whether they'll keep up the pace, it doesn't even have a resizable array or, alternatively, a Clojure-like vector (but neither does Base).

comment 3y ago · link · parent

UnityScript wasn't actually JavaScript, but a custom .NET language with a JS-like syntax, largely incompatible of course. Naturally people wanted to use C# instead.

comment 3y ago · link · parent

Spanish here, me and most people I know get weekly spam calls and phishing attempts. I suspect the reason we receive them and some people don't is that our phone numbers appeared in one or more data breaches these scammers are using.

Having Android block or flag spam calls automatically was a godsend, even nontechnical people are looking into that feature now.

comment 3y ago · link · parent

I believe he does have a cop-out if HN isn't selling to or marketed towards the EU, but I thank you for sharing your experience because I'm looking to shut my account in the near future.

comment 3y ago · link · parent

Less than genuine lookups? Even if all the world's DNS traffic came from Chrome, probe lookups are taking 50% of all root server traffic just to confirm NXDOMAIN over and over.

comment 3y ago · link · parent

No zoomer I talk to has any idea what ^^ means, it seems like a millennial giveaway. I haven't tested :3, but in general it seems to me they're barely aware of plain-text emotes.

comment 3y ago · link · parent

> are included in a high profile data breach of some kind

How is this avoidable specifically in Europe you say? Breaches affect us here just as much as anywhere else, specially since most breaches are user/client lists from large corporations most people can't afford to stop dealing with.

> are the unlucky, statistically unlikely victim of spam from a new source that is yet to receive punitive action

Unlikely? Given the rate at which scam and spam calls have increased in my country as data breaches built up, and this has been going for long already, I doubt they're getting much punitive action here.

1
383940
43