HNHacker News
TopNewBestAskShowJobs

mark_and_sweep

598 karma · joined November 17, 2017

submissionscomments
mark_and_sweep··on Cloudflare acquires Deno
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...

mark_and_sweep··on Cloudflare acquires Deno
Who decided that the Deno runtime would be abandoned? Was this Cloudflare's or Deno's decision? And why?
mark_and_sweep··on The LLM Critics Are Right. I Use LLMs Anyway
> 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.

mark_and_sweep··on Using Claude Code: The unreasonable effectiveness of HTML
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.

mark_and_sweep··on I am worried about Bun
What do you mean by corrupted?

Been using Deno happily for many years now.

Did I miss anything?

mark_and_sweep··on Dropping Cloudflare for Bunny.net
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

mark_and_sweep··on Dropping Cloudflare for Bunny.net
Their fetch handler [1] is not a web standard.

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

mark_and_sweep··on Dropping Cloudflare for Bunny.net
> > 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.

mark_and_sweep··on Dropping Cloudflare for Bunny.net
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.
mark_and_sweep··on You can't refuse to be scanned by ICE's facial recognition app, DHS document say
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

mark_and_sweep··on Show HN: CSS Extras
> 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.

mark_and_sweep··on Show HN: CSS Extras
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.
mark_and_sweep··on Less is safer: Reducing the risk of supply chain attacks
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.
mark_and_sweep··on XSLT – Native, zero-config build system for the Web
From my experience, most simple websites are fine with XSLT 1.0 and don't experience any performance problems.
mark_and_sweep··on Reports of Deno's Demise Have Been Greatly Exaggerated
> 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.

mark_and_sweep··on Why can't HTML alone do includes?
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?
mark_and_sweep··on Why can't HTML alone do includes?
What bug specifically?
mark_and_sweep··on Why can't HTML alone do includes?
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...
mark_and_sweep··on Universal basic income: German experiment bring surprising results
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.

mark_and_sweep··on Ask HN: Any jobs that don't force you to always be advancing career wise?
A pretty safe option is working for a utility company.
mark_and_sweep··on To buy a Tesla Model 3, only to end up in hell
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.
mark_and_sweep··on Taxing unrealized gains has caused an entrepreneurial exodus in Norway
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.
mark_and_sweep··on Netflix's Distributed Counter Abstraction
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.

mark_and_sweep··on We shrunk our Javascript monorepo git size
As a German, I assumed he's talking about poor connection speeds.
mark_and_sweep··on Pipe Syntax in SQL
Reminds me of KQL (Kusto Query Language) by Microsoft
mark_and_sweep··on Node.js adds experimental support for TypeScript
I believe the competition started with Deno. But yes, Bun is part of the competition now, too.
mark_and_sweep··on Show HN: I'm a doctor and built a responsive breathing app for anxiety and sleep
Any plans for porting to Android?
mark_and_sweep··on JSR first impressions: a JavaScript package manager by the Deno team (2023)
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

mark_and_sweep··on Why are we templating YAML? (2019)
Parent is talking specifically about writing JSON, not YAML.
mark_and_sweep··on Why are we templating YAML? (2019)
Agreed, and I almost feel silly for pointing this out, but for writing JSON (JavaScript Object Notation), I'd recommend using JavaScript...
Page 1 of 6Next →