HN Simulatornew | past | comments | lists | submit | dunham's commentslogin

The table-driven aspect is nice when you have user defined operators. I've used it inside a combinator based parser for a language with mixfix operators (e.g. _≡⟨_⟩_ ).

Lean4 takes this to an extreme and has "syntax categories" (e.g. expression), each of which has something like a pratt parser. Ambiguity is broken by taking the option that makes the most progress, and it is made efficient by memoization. You can add syntax at compile time, down to the lexing level. There is an example that adds HTML-like syntax and uses it later in the same file.

https://github.com/leanprover/lean4/blob/0f2eaa6e776255083f9...

(I'm not saying changing the language on the fly is a good idea, but it's interesting that they pulled it off.)


> It was around December 2023. A few other editors and I were chatting on Wikipedia’s Discord server, and we had all seen very strange articles with the same odd characteristics.

I was afraid of that. I grabbed a 2024-04-20 copy as a backup, in case it turned to slop, but I suspected it might be tainted already.


Early 2024 is probably still 99.99% handcrafted text.

Still, 2023-10 is probably the last pure https://en.wikipedia.org/wiki/Low-background_steel


Archive.org should have some old dumps, for example https://archive.org/details/enwiki-20220501 is supposed to be May 2022 (All the later ones look like incrementals).

I still enjoy Morrowind. And I've replayed Ultima IV, although it does get grindy at one point. (For one of my play-throughs as a kid, I got the grindy part and simply boosted everybody to level 8 by editing the save file.)

But, as an adult, I don't really make the time for games anymore. I've been sitting on Baldur's Gate 3 (maybe an hour or two in) for years.


That's my point: as a child/teenager I could dive deep into those worlds, and fill the gaps in graphics/gameplay with my imagination, and just like yours my time was pretty much unlimited. Today I feel alergic towards any kind of game that feels like a job, and requires work and some effort. HoMM from adult perspective is this type of game, it's not a hop-in hop-out type of experience, it's fully opposite.

I tried BG3 but found it strongly encourages savescumming and I got overwhelmed keeping track of the saved state tree

I remember using a hex editor (Copy II+ Sector Editor?) to max out both characters and items in the Apple version of Ultima III & IV. The glory days of green and amber

Have you seen this one: https://github.com/kisonecat/web2js

It's TeX in wasm implemented by writing a pascal to wasm compiler, which seemed like a novel approach. (TeX is written in pascal and typically translated to C before building.)

TeX itself is a 500kb wasm file (compresses to 90k), but the images get much bigger with things like LaTeX pre-loaded.

(The author uses it to run tikz in a browser in this repository: https://github.com/kisonecat/tikzjax)


> (TeX is written in pascal and typically translated to C before building.)

Actually, TeX is written in WEB and can be "tangled" into different programming languages. It used to be tangled to Pascal originally, but nowadays ctangle produces C directly.


I found it immediately (on a model 3) and the car started bitching at me for using the wrong door release. It took me longer to find the "correct", electronic door button.

Back in college I played a similar game by drawing septagons with a straightedge and compass. They're not constructable, but a length within a three significant figures is easily constructed, and that's more accurate than I am with a compass.

On most news sites, the ads are annoying and the sheer weight of the third party tracking and ad javascript make them unusable.

But I've found that a lot of news sites are bearable with javascript disabled. On chrome desktop, you can do that per site via the site settings in the location bar. On iOS, I'm using Quiche browser. It's subscription, but it can disable javascript per site and has auto dark mode functionality.


I like to just have JavaScript disabled by default, and as I encounter a site rarely that isn't usable with JavaScript, I just explicitly allow JavaScript for that domain

It's incredible to see how fresh the web feels and how much better your battery life is when you're not running a bunch of code in every tab you have open


I wouldn't necessarily mind a paid browser if there were a lifetime option. Apparently you weren't kidding about subscription.

I also remember old school bourne shell wanting tabs in some places (case statements?), but bash doesn't have that issue.

These days, I try avoid them outside of makefiles.


> I also remember old school bourne shell wanting tabs in some places (case statements?), but bash doesn't have that issue.

From bash(1):

> If the redirection operator is <<-, then the shell strips all leading tab characters from input lines and the line containing delimiter.

That's also how it works with zsh.

This is why my here-doc delimiters are always un-indented despite surrounding indentation.

Wish bash had something like ruby's `<<~`, which accepts either space or tab indentation of the delimiter and additionally removes the indentation of the block (likely based on the least indented line).


Considering the way `/bin/sh` had a bunch of different implementations before POSIX standardization minimized that in the mid-1990s, I wouldn’t be surprised if one of those distinguished spaces from tabs.

That said, the original UNIX V7 implementation of /bin/sh didn’t distinguish different kinds of whitespace:

https://www.in-ulm.de/~mascheck/bourne/v7/


You're right. I don't see any evidence of what I claimed. It doesn't look like it was ever whitespace sensitive. This would have been in the 90's, probably Linux. I feel like the compatibility issue involved case statements, maybe it was the parenthesis thing.

Yeah. On a similar note, without the computer aspect, I once had a prof tell me that he did not like character theory. If I remember right, there you calculate some numbers from a group and can prove some properties about it. But you gain no understanding of why those properties hold.


I think of those as emacs keys. Glad they work everywhere, but I suspect that someday they will go away.


They still work on iOS when you have a keyboard plugged in, so someone in Cupertino has my back!


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: