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

They're not arguing that Apple doesn't sell laptops, they're refuting that "Windows, Intel, AMD and Nvidia have [...] given the laptop market to Apple". Unless one thinks the laptop market only exists in the US, this idea simply can't match reality, not yet anyway.

comment 3y ago · link · parent

I'm fine with different controllers displaying different symbols for the same button, but random-button QTEs and games based around entirely contextual prompts are the bottom of the barrel of gaming. I've seen so many people fail at games by Quantic Dream and Supermassive simply because they were playing with an unfamilar controller.

The labels exist to help the game teach its control scheme, not to make players memorise the layout itself. But of course, games without consistent game mechanics don't have any control scheme to teach.

comment 3y ago · link · parent

What do you mean reversed? The NES already assigned letters right-to-left: B A!

Controllers typically used sets of A-B(-C) X-Y(-Z) face buttons, A/B intuitively meaning ok/back however they were laid out, usually in straight or angled rows assigned left-to-right (e.g. Sega) or right-to-left (e.g. Nintendo). The angled layouts are the modern Xbox and Nintendo layouts (which Nintendo used since forever and Xbox I guess inherited from their Windows CE involvement with Sega).

But Sony came up with the symbols instead, so Japanese devs followed the maru/batsu metaphor with circle/X, whereas early western games used X/triangle until they switched to X/circle, and those became official regional layouts until the PS5 switched Japan to X/circle.

comment 3y ago · link · parent

The other way around, the meaning of API standalone has been narrowed to mean HTTP APIs, as if it were redundant. Specially tedious if you're searching for non-HTTP API design notes.

comment 3y ago · link · parent

I don't think the team being US-based is enough to explain why did they choose to unify the layout, only why did they unify on the western one.

comment 3y ago · link · parent

> Interestingly, ╳ is no/◯ is yes only on Playstation games released in Japan.

Not anymore as of PS5 though, not sure why they chose to change it.

comment 3y ago · link · parent

I know this isn't in the same spirit as the project above, but at least in Spain it's available on Netflix.

I didn't remember it having so much filler though.

comment 3y ago · link · parent

> Because until he tries it, who knows if it works?

That's precisely what he shared this for, though. So someone willing to train a model with this tweak tries it.

comment 3y ago · link · parent

They didn't state the opposite, bidirectional typing rules are a technique to describe a type system, distinct from both Hindley-Milner's and simple "unidirectional" checking.

I'm using it for my personal lang project and I'm quite satisfied as well, it translates easily into code and interacts well with subtyping.

comment 3y ago · link · parent

The word for government in most languages doesn't start with gov-, so no thanks.

I'd personally suggest the opposite, the US switching to .gov.us and .edu.us, but consensus in this thread seems to be that "everyone" already knows those are US-only anyway, where "everyone" of course means Americans; even "too late to change" is a better argument than that, IMO.

comment 3y ago · link · parent

> In-game text content is heavily censored, including but not limited to chat, Book and Quills, Written Books, Signs, Command Blocks, renamed items (via Anvils) and mobs (via renamed Spawn Eggs or Name Tags)

> Censorship also applies to any text in the launcher, such as community posts, comments on contents, and private messages. Rental servers and virtual LAN games are not allowed to have names altogether, instead being referred to by a numerical ID

I guess you don't need any obscure packet inspection if you can just censor the clients and servers directly instead. This feels like the censorship equivalent of the wrench XKCD.

comment 3y ago · link · parent

TIL. There are apparently more Berne Convention signatories than WTO members, though, so I guess the former still has more reach, but I assume the intersection isn't empty, so of course TRIPS must have had some impact as well.

comment 3y ago · link · parent

It's a Berne Convention thing.

https://en.wikipedia.org/wiki/Berne_Convention

comment 3y ago · link · parent

How did you miss the "then they reduced funding" part? So yes, at first, then not anymore.

comment 3y ago · link · parent

Source-available is not open-source; I know people care increasingly less but having access to the source is not enough for it to be "open".

comment 3y ago · link · parent

Kinda, Amazon purchased the code and forked it as Lumberyard. Then they realised their own studios didn't want to use it and their game-dev projects failed, so they donated the engine to the Linux Foundation.

But the engine didn't even support Linux yet, so they spawned a new Open 3D Foundation for it, and renamed the engine Open 3D. I haven't heard of anyone using it seriously yet.

comment 3y ago · link · parent

It's to distinguish whether to call res[Symbol.dispose]() or await res[Symbol.asyncDispose]() at the exit.

comment 3y ago · link · parent

I've read it does, but starting about 500 karma, so I'll never know firsthand.

comment 3y ago · link · parent

This is a good and necessary step in the right direction, but if I understand correctly interpreters can't share memory directly. So this will unblock some uses cases for embedding Python and for replacing process-level parallelism, but it doesn't yet improve their existing threading model.

Nice to know anyway, I'll keep an eye on how they progress.

comment 3y ago · link · parent

They should consider copying OCaml's solution to the GIL: sets of one or more threads ("domains"), each set with its own global lock.

So old code spawns threads on the current domain, behaving as before, but new code can spawn new domains instead for proper concurrency. This lets you contain GIL-dependent threads while progressively migrating away from the GIL.

comment 3y ago · link · parent

But they're complaining about the cost of leasing the Mercedes, so they need to lower their expectations if they want a cheaper solution.

Although having to spend some time to attain good enough availability/durability is not a big deal when the rush to launch was over long ago. Unlike in your example, you can turn the bicycle into a car.

comment 3y ago · link · parent

They specifically meant release, not commit. Latest release Dec 16, 2021.

comment 3y ago · link · parent

Could you explain further? The link contradicts this:

> The most tragic aspect of this bug, however, is that it is intended behavior according to the YAML 1.2 specification. The real fix requires explicitly disregarding the spec - which is why most YAML parsers have it.

comment 3y ago · link · parent

Isn't there a separate podman-compose project? Also, I believe you can run much of Docker Compose on top of podman-docker.

comment 3y ago · link · parent

Donations are not a commercial activity if no good or service is exchanged (in which case they wouldn't be donations, just purchases).

comment 3y ago · link · parent

> confusing process of finding my full name that they assigned to me

Isn't it always shown at the lower left corner of the window? Or the profile tab on mobile.

Also, the only part assigned to you should have been the #NNNN suffix, the rest can be your same handle as everywhere else.

comment 3y ago · link · parent

> We've been trying that with email and spam

Aren't we talking about blocking and muting known user handles? This is easy, the spam problem would be identifying which handles to block.

> What happens if B sends enough to DOS A's link? Or sends CSAM and now A is committing a crime just by downloading the content?

What happens if B does the same before A had a chance to block them? And why would A's client download the content after reading that B published it from the metadata?

> Which increases the friction on B if they want to harass A

True, but I'm afraid we already know from Twitter that B will do it anyway, aided by either fast user switching or a Tweetdeck-like interface.

comment 3y ago · link · parent

> You are complaining about a lot of things simultaneously, and it's hard to tell exactly which point you want to tackle.

Thanks, that's exactly how I felt about your first reply.

> tree-sitter does actually have "magic tech" unavailable to most compilers

No, not using it doesn't mean it's unavailable, at best it means the toolchain is up for an upgrade.

> the magic tech is that

I too have written compilers and language servers, even tested novel parsing techniques. I don't need tree-sitter explained to me, I understand the theory behind it perfectly well and, as I already said, understand what they're going for in terms of ecosystem. I just don't think it's the sweet-spot you think it is.

In any case, making incremental edits is not novel, it's easy even with good old recursive descent by simply traversing the ast, skipping the prefix of the change, reparsing the inner node and checking that the edit was well-bounded (hopefully your language doesn't have multiline strings, or you'll have to accept that some incremental changes consume the whole file in the worst case anyway). I've done this, and again, if some toolchain doesn't then it's up for an upgrade.

The actually interesting parts of tree-sitter, to me, are the error recovery and the shared parse tree interface. The latter is orthogonal to the parsing technique, yet with tree-sitter it's all or nothing. The former would be great if it actually marked the error in the parse tree, which it didn't when I checked and it wasn't deemed important.

> most cannot real time semantic highlight even a 100k file on every keystroke

Even you concede that the bottleneck here is not usually parsing, and even then I just said it can be made incremental easily, but all the other work that the compiler is choosing to do before answering back to the editor. When this work is unnecessary (at this step anyway), then sure, you can speed past them by doing the work yourself on the tree-sitter parse tree.

> you could make a compiler for every language which supports a mode that does what tree-sitter does

Yes, we could. Maintaining and testing tree-sitter grammars also has a cost, maybe the difference is that compiler maintainers are externalising this cost right now.

> and then pay the cost of integrating 50 language specific ways of transforming these to work with the editor

No! We went through this with LSP. We can have any number of parsers with a shared driver interface, maybe like tree-sitter's, but we don't need to push every grammar through a single parser toolkit that isn't good enough to replace the existing parser in the toolchain.

In fact, tree-sitter grammars are shipped precompiled to editors, so that's kinda the situation already, but their current interface AFAIK expects a particular implementation on the parser (theirs).

> You seem to really otherwise be complaining that you believe it does always generate correct parsers

I guess you mean doesn't. Then yes, but that's not an "otherwise", that's a big deal, because if tree-sitter parse trees were actually sound I could just maintain a single tree-sitter grammar for the entire toolchain, compiler and editor, and this debate would be redundant.

1
373839
43