Better HN
topnewbestaskshowjobs
Log inSign up

mark_and_sweep

598 karma · joined Nov 17, 2017 (9y ago) · 152 submissions

Submissions

comment 1mo ago · link · parent

Thanks for your response, ry. It's hard to put into words how much I appreciate your work, both on Node and Deno. Honestly, you saved me from a career as a Java dev. :) I've been using Node since 2013 and Deno since 2018 (when it was still written in Go)... I used both first for hobby projects and scripting and later, when they matured, also at work.

I disagree that there's little differentiation between Node and Deno these days. Sure, I love Deno's UX and tooling, but the security benefits Deno has over Node are still the number one reason, we're picking Deno over Node at work. I'm honestly sad we may have to reconsider and switch.

I understand you are working on a new model for server development and I'll take a look at celld for sure. But what about scripts? I have a couple hundred repositories all using Deno for a wide range of scripting tasks. I'd love to continue using Deno for scripting for another 8 years or longer.

I'm just feeling a bit sad, you know. It kinda feels like I'm gonna lose a friend. That happy little dinosaur, now standing in the pouring rain again...

comment 1mo ago · link · parent

Who decided that the Deno runtime would be abandoned? Was this Cloudflare's or Deno's decision? And why?

comment 4mo ago · link · parent

> a genuinely good tool that enriches your thinking

A smartphone is also a genuinely good all-around tool. Even social media is a genuinely good tool for connecting people.

Yet, I feel like we've been overly optimistic about the impact of said tools on us and our societies in the past two decades.

Smartphones are so good, in fact, in some societies, half of us are addicted to them. Billions of people world-wide.

I ask myself: Will LLMs enrich my thinking in the long run, or will they ruin it?

And what about most people? Will half of us outsource most of our thinking in a decade from now?

Given the speed and global scale that we're running these experiments with, it's fair, I think, to be a bit sceptical of the conclusion that, in the long run, LLMs will enrich our thinking.

comment 6mo ago · link · parent

Technically, yes. Markdown was always intended to be used for creating HTML and thus allows you to use HTML inline (with some minor caveats, see: https://daringfireball.net/projects/markdown/syntax#html).

If you rename a .html file to .md, your markdown viewer should render it just the same as your browser did.

comment 6mo ago · link · parent

What do you mean by corrupted?

Been using Deno happily for many years now.

Did I miss anything?

comment 7mo ago · link · parent

Sorry, what? I never mentioned lock-in.

I assume by Service Worker API, you mean FetchEvent? [1] As in:

self.addEventListener("fetch", (event) => {});

That is a web standard indeed, but not one that was designed for use as a general-purpose HTTP handler, but rather for use in a Service Worker proxy.

[1] https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent

comment 7mo ago · link · parent

Their fetch handler [1] is not a web standard.

[1] https://developers.cloudflare.com/workers/runtime-apis/handl...

comment 7mo ago · link · parent

> > I don't understand how none of the alternatives really embrace WinterTC

> You provide handlers that fulfil requests from the system.

As I said previously, though I wish they were, such handlers are not part of WinterTC.

And then again, how those handlers are registered is also not part of WinterTC, which I also wish it were.

> APIs like that leak implementation details

How?

Almost all runtimes, like Bunny Edge Scripting, Cloudflare Workers, Deno, Bun, etc. use the same basic signature for the handler:

(request: Request) => Promise<Response>

Only how you register said handler is, unfortunately, different for each runtime.

comment 7mo ago · link · parent

AFAIC, WinterTC doesn't specify how to start an HTTP server. Their minimum common API requires, among other things, that the Request and Response interfaces from the fetch specification are present. Unfortunately, it does not specify any sort of serve function.

comment 1y ago · link · parent

As a German, I gotta ask: Is this a reference to Martin Niemöller's "First They Came"?

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

comment 1y ago · link · parent

> Is there still a real-world use case for XHTML

If I need the markup of a page to not contain any structural errors, I often use XHTML for testing at least because, though it's a little more verbose, if there's a nesting error, for example, the browser will flat out refuse to render it and show some sort of stacktrace error page instead. So it's quite a good built-in "tool" for checking that your markup is clean.

With HTML, everything goes and the browser will happily render broken markup, which is probably the correct default for the web as a whole. After all, you surely don't want a page like Wikipedia to show an error message to its users because a developer forgot to close a tag somewhere.

comment 1y ago · link · parent

XHTML (or the XML syntax for HTML) wasn't removed (see: https://html.spec.whatwg.org/multipage/introduction.html#htm...). You may be thinking of XSLT, which may be removed in future.

comment 1y ago · link · parent

Switching to Deno might help. It's sandboxed by default and offers granular escape hatches. So if a script needs access to a specific environment variable or read or write specific files, it's simple to configure that only those accesses are allowed.

comment 1y ago · link · parent

From my experience, most simple websites are fine with XSLT 1.0 and don't experience any performance problems.

comment 1y ago · link · parent

> My favorite testing framework, AVA, still isn’t supported.

Have you checked recently? The docs (https://docs.deno.com/runtime/fundamentals/testing/) specifically mention AVA as being supported. Then again, I'd assume that most devs using Deno just use the built-in `deno test` instead of a third-party testing framework.

> The one area of Node compatibility that I want the most is support for ESLint configs in the Deno linter.

Again, have you checked recently? According to the docs this is supported: "Deno's built-in linter, `deno lint`, supports recommended set of rules from ESLint to provide comprehensive feedback on your code. (...) You can specify custom rules, plugins, and settings to tailor the linting process to your needs." (https://docs.deno.com/runtime/fundamentals/linting_and_forma...)

I've been using Deno for 6 years now. And I'm actually quite happy that most Deno projects don't have a custom testing and linting setup.

comment 1y ago · link · parent

This bug is specifically about <xsl:text disable-output-escaping="yes"> not working in Firefox. How is disabling output escaping relevant in regards to sharing templates between pages?

comment 1y ago · link · parent

What bug specifically?

comment 1y ago · link · parent

I believe XSLT 1 is still working in all major browsers today. Here's a simple HTML 5 example with two pages sharing a header template: https://gist.github.com/MarkTiedemann/0e6d36c337159a3e6d5072...

comment 1y ago · link · parent

The study actually shows that the people on UBI switched their jobs more often than the control group.

Considering that the group on UBI was also happier, felt more financially secure and freer than the control group, this is hardly surprising.

comment 1y ago · link · parent

A pretty safe option is working for a utility company.

comment 1y ago · link · parent

I'm driving a 2022 Kia Niro EV. Yes, the sign detection is pretty unreliable, but otherwise I've had no (software) issues with the car yet.

comment 1y ago · link · parent

There is still a wealth tax in Germany which is, in fact, enshrined in its constitution. However, the tax has not been collected since 1997 due to legal issues regarding its calculation. Back then, the constitutional court decided that wealth in the form of properties would have to be taxed more. However, instead of adjusting the calculation, politics instead decided to suspend collecting the tax. Ever since, there have been multiple political initiatives aimed at restarting the collection of the tax, none successful so far, despite a large majority of Germans (70+%) being in favor of collecting the wealth tax.

comment 2y ago · link · parent

Lately, the user experience has gotten much worse for Windows users: In July they removed the ability to download content for offline viewing. So everyone who wants to watch content while travelling, for example, has no other option but to use a competitor like Prime Video.

I would also like to point out that those "savings on infrastructure costs" seemingly do not benefit their users: They have repeatedly increased prices over the past few years.

I'm also unsure whether they are using their competitive advantage properly. Anecdotally, it used to be that almost everyone I knew was only streaming on Netflix. These days, the streaming services that people use seem much more diverse.

comment 2y ago · link · parent

As a German, I assumed he's talking about poor connection speeds.

comment 2y ago · link · parent

Reminds me of KQL (Kusto Query Language) by Microsoft

comment 2y ago · link · parent

I believe the competition started with Deno. But yes, Bun is part of the competition now, too.

comment 2y ago · link · parent

Any plans for porting to Android?

comment 2y ago · link · parent

I feel like SEO might be problematic initially given that JSR is already an abbreviation for a Japanese corporation and Java Specification Requests.

See https://en.m.wikipedia.org/wiki/JSR

comment 2y ago · link · parent

Parent is talking specifically about writing JSON, not YAML.

comment 2y ago · link · parent

Agreed, and I almost feel silly for pointing this out, but for writing JSON (JavaScript Object Notation), I'd recommend using JavaScript...
123456