Better HN
topnewbestaskshowjobs
Log inSign up

creata

2,965 karma · joined Sep 19, 2020 (6y ago) · 1,349 submissions

only a fool would take anything posted here as fact
Submissions

comment 10mo ago · link · parent

Well, I'm not sure why that matters, but you can replace .html with .org in the URL and get the Org file.

comment 11mo ago · link · parent

Looking at the markup of some pages, such as https://orgmode.org/Changes.html , at least parts of the website seem to have been generated from Org mode.

comment 11mo ago · link · parent

> I'm hoping to replace it with Typst

This might be stupid but is there a reason you want to go through docbook and xsltproc instead of setting --pdf-engine=typst?

comment 11mo ago · link · parent

I don't think the lack of spec is holding Org back. Markdown came out in 2004; CommonMark came out in 2014. I think Markdown was already very popular by the time CommonMark came out.

The more obvious reasons are that Markdown was dead simple, unlike Org, and integrated into many popular products, unlike Org.

(Tangent: To be honest, I'm not sure why websites like Reddit opted for Markdown rather than text formatting buttons. It's a good thing, and I'm not complaining, but adding the standard rich text buttons (like the ones Reddit has now) seems like it would've been the more obvious move.)

comment 11mo ago · link · parent

> Transpiling to C is the worst possible way of trying to address these issues.

It's really not. Compiler writers, in your words, "write a whole bunch of machinery" so that the code has the intended semantics. It's not fundamentally that different to generating LLVM IR.

I never said every single language compiles via C. Sure, you're right, Zig and Rust generate LLVM IR instead (edit: iirc Zig is moving to their own backend, but I don't think that's relevant), and there isn't much reason not to target LLVM these days, unless you want to target niche platforms that LLVM doesn't support.

> It would be an undoubted improvement to be able to bypass that layer when it isn't useful, regardless of one's opinion on JS.

I will ask you clearly: you are asking for a lot of work from browser makers. What use cases, concretely, will that work actually enable?

If you hate the baggage of JS -- which is fair enough, there's a big mismatch between it and many other languages -- Wasm can be used for most of the heavy lifting, and it lacks that baggage. The JS only needs to be a little layer between Wasm and the browser.

But what will getting rid of that layer enable? What will it let people do that couldn't be done before?

I'm not trying to be mean, so I'm sorry if it came off that way.

comment 11mo ago · link · parent

> If someone wanted to replace C, would you suggest C as a C replacement?

If someone wanted to replace C, I would strongly suggest compiling something else to C, yes. That seems kind of obvious. It's how many programming languages that aim to replace C get their start.

To put it another way: I can see how [replacing JS as the interface that the human deals with] can be valuable goal, but why is [replacing JS so completely that it doesn't even exist as generated code] so valuable to you?

comment 11mo ago · link · parent

> with a bunch of stuff renamed

And a capability system and a brand new IDL, although I'm not sure who the target audience is...

> it's basically just regular assembly language

This doesn't affect your point at all, but it's much closer to a high-level language than to regular assembly language, isn't it? Nonaddressable, automatically managed stack, mandatorily structured control flow, local variables instead of registers, etc.

comment 11mo ago · link · parent

Submitters can also edit the title themselves after submitting.

comment 11mo ago · link · parent

Why? My only guess is that the instructions don't match x86 instructions well (way too few Wasm instructions) and the runtime doesn't have enough time to compile them to x86 instructions as well as, say, GCC could.

comment 11mo ago · link · parent

Wikipedia mentions that Wasm is faster to parse than asm.js, and I'm guessing Wasm might be smaller, but is there any other reason? I don't think there's any reason for asm.js to have resulted in slower execution than Wasm.

comment 11mo ago · link · parent

> it's probably going to be even less pretty than transpiling to Javascript already is.

I don't see how it'd be much different to compiling to JavaScript otherwise. Isn't it usually pretty clear where allocations are happening and how to avoid them?

comment 11mo ago · link · parent

What was preventing the development of Figma before Wasm?

For developing brand new code, I don't think there's anything fundamentally impossible without Wasm, except SIMD.

comment 11mo ago · link · parent

Emscripten has pthreads. You can multithread it yourself using web workers and shared memory. What's missing?

comment 11mo ago · link · parent

> a fully-featured JS replacement, targetable in any language

Any language can target a combination of JS and Wasm, right now, to get a "fully-featured JS replacement". How would adding more features to Wasm improve that situation?

comment 11mo ago · link · parent

But what's the benefit of replacing containers with WASI?

The performance would be worse, and it would be harder to integrate with everything else. It might be more secure, I guess.

comment 11mo ago · link · parent

They'd be raked over the coals for the lack of accessibility, I hope.

comment 11mo ago · link · parent

The software could do better, sure, but in this case the accountability clearly falls on the lawyers. It's their job - and it's a job that can profoundly impact people's lives, so they need to take it seriously - to redact information properly.

comment 11mo ago · link · parent

For people too lazy to click, the second post was:

> I think it’s time for the British to gang together, hit the streets and start the slaughter.

> Violence and murder is the only way now. Start off burning every migrant hotel then head off to MPs’ houses and Parliament, we need to take over by FORCE.

I'm not sure what the punishment for such a clear but ineffective incitement to violence should be, but it shouldn't be nothing.

comment 11mo ago · link · parent

> I'm not sure if that has any impact on how fun a game is.

It might if the game has a more-than-perfunctory story, because authors often incorporate their political or religious beliefs into their stories. (This is usually a good thing: most of the novels that people love would be nothing if stripped of those themes.)

comment 11mo ago · link · parent

> The browser is just a tool, not a religion.

An ad blocker is a very useful tool. Being able to block ads effectively makes the browser much better. I'm not sure how you can call that "religion".

> People use Chrome because it's the best browser.

No they don't. They use Chrome because every Google service nags the shit out of them to use Chrome. People aren't as rational as you make them out to be.

comment 11mo ago · link · parent

Yes it does. Having a browser that truly has the user's back, without always trying to compromise the user's interests in favor of advertisers - that would be a benefit to society.

I wish Firefox would be that browser.

comment 11mo ago · link · parent

I can't be bothered addressing the rest because it's like trying to explain emotions to a robot, but if you have a poorly hinted font, you will notice, because it'll be annoyingly blurry unless you have a high DPI display.

comment 11mo ago · link · parent

That's because it's not an article, it's a section of Butterick's book. (He also has a book at https://practicaltypography.com/ that isn't targeted at lawyers, and I think a lot of the content overlaps.)

I agree that he's a bit too mean to mainstream fonts, though.

comment 11mo ago · link · parent

I agree! More praise: it's well-hinted, has good support for Unicode and math, and comes packaged with macOS.

It should be mentioned that the x-height is much higher than the usual Times New Roman, which is usually a good thing imo, but different.

comment 11mo ago · link · parent

> each judge could apply his own preferred styling for working with it

It kind of makes sense to ensure that everyone is seeing the same thing, though, which is something PDF is (relatively) good at.

comment 11mo ago · link · parent

Tbh whether I use spaces around em dashes depends more on the font than anything. Some fonts have em dashes that are so long that putting spaces around them would be ridiculous.

comment 11mo ago · link · parent

The "voice" of chatbots comes from the stuff after the main training, which is very different to the average human voice. Even the main training would give you something like "average on the internet" voice, which is quite different to the average human voice.
1
789
45