2,570 karma · joined May 8, 2019 (7y ago) · 1,261 submissions
comment 3y ago · link · parent
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
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
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
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
> 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
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
Nice to know anyway, I'll keep an eye on how they progress.
comment 3y ago · link · parent
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
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
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
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
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.