Better HN
topnewbestaskshowjobs
Log inSign up

FjordWarden

171 karma · joined Jul 11, 2024 (2y ago) · 77 submissions

Submissions

comment 2mo ago · link · parent

Yes sorry I forgot to mention the king would have been like 70kg max so easier to transport then tonnes of gold.

comment 3mo ago · link · parent

There is a very awkward episode in Belgium national history, at the eve of WWII, the then minister of finance Camille Gutt, had the foresight to move tonnes of gold from the national bank to America and France but for some reason our king did not manage to pack his bags in time and was captured by the Nazis.

comment 3mo ago · link · parent

That is not what the text is arguing for and it has many good ideas, dropping the abstractions but keeping the test harness is one of them. I've worked on many aspect of programming language implementation through the years and I would struggle with the abstractions of parser-generators and bytecode designed by committee like an enterprise Java developer struggles with the Hibernate ORM. Dunno what people are putting in their prompts but ask LLM to roofline and it will pursue that target like a bloodhound.

comment 6mo ago · link · parent

Reminds me of the abiogenic petroleum: https://en.wikipedia.org/wiki/Abiogenic_petroleum_origin

comment 6mo ago · link · parent

Alright my bad I did not find any info about this, but still they are no longer mentioned as a sponsor.

comment 6mo ago · link · parent

I love Bun & Zig and this feels a bit like my parent are getting a divorce. I thought it was a bit strange that Bun did not sponsor the Zig foundation while others much smaller companies have.

comment 9mo ago · link · parent

Let management argue there case, don't do it for them.

comment 9mo ago · link · parent

Man am I getting tired of these articles and we can do without this neurotic melancholic whining. Maybe it is the title of the article that triggered me, but it reminded me of hearing Douglas Murray read excerpts from "The Strange Death of Europe" in his self-aggrandising pompous tone.

The authors colleague needed a couple of tries to write a kernel extension and somehow this means something about programming. If it was not for LLMs I would not have gone back to low-level programming, this stuff is actually getting fun again. Lets check the assembly the compiler produced for the code the LLM produced.

comment 10mo ago · link · parent

Interesting, I did not know that colors-of-noice was related to this, what you say sounds conceptually very similar to how Maxwell's demon connects thermodynamics to information theory.

comment 10mo ago · link · parent

No, it is a hypothesis I formulated here after reading the article. I did a quick check on google scholar but I didn't hit any result. The more interesting question is, if true, what can you do with this information. Maybe it can be a way to evaluate a complete program or specific heap allocator, as in "how fast does this program reach universality". Maybe this is something very obvious and has been done before, dunno, heap algos are not my area of expertise.

comment 10mo ago · link · parent

Maybe also heap fragmentation

comment 10mo ago · link · parent

TS returns a tree with nodes, you walk the nodes with a visitor pattern. I've experimented with using tree-sitter queries for this, but for now not found this to be easier. Every syntax will have its own CST but it can target a general AST if you will. At the end they can both be represented as s-expressions and but you need rules to go from one flavour of syntax tree to the other.

AST is just CST minus range info and simplified/generalised lexical info (in most cases).

comment 10mo ago · link · parent

You have to figure this out for yourself in most cases. Tree sitter does have a query language based on s-expressions, but it is more for questions like "give me all the nodes that are literals", and then you can, for example, render those with in single draw call. Tree sitter has incremental parsing, and queries can be fixed at a certain byte range.

comment 10mo ago · link · parent

This is like the difference between an orange and fruit juice. You can squeeze an orange to extract its juices, but that is not the only thing you can do with it, nor is it the only way to make fruit juice.

I use tree-sitter for developing a custom programming language, you still need an extra step to get from CST to AST, but the overall DevEx is much quicker that hand-rolling the parser.

comment 10mo ago · link · parent

Ah, I think I found the reason as to why WebAssembly (in a browser or some other sandboxed environment) is not a suitable substrate for near native performance. It is a very ironic reason: you can't implement a JIT compiler that targets WebAssembly in a sandbox running in WebAssembly. Sounds like an incredibly contrived thing to do but once speed is the goal then a copy-and-patch compiler is a valid strategy for implementing a interpreter or a modern graphics pipeline.

comment 11mo ago · link · parent

The CM DB group YT channel is good place to learn about the basics and advanced topics: https://www.youtube.com/@CMUDatabaseGroup

comment 1y ago · link · parent

Challenge accepted, but no way I can finish this in 7 days even with a head start of a few months.

comment 1y ago · link · parent

Polders have personhood in some jurisdictions. The government reclaimed the land from the sea, sold it to multiple people, levies taxes on them and now the dykes need to be maintained.

This is just legal fiction, technology developed and applied cross industry.

The mere concept of water rights implies obligations must lie someplace. All this talk about reified gods takes away much of how mundane the concept is.

comment 1y ago · link · parent

Imagine if you spent those years building something else.

comment 1y ago · link · parent

After coming down from the shock of learning there are people like you I was even more amazed that one of the founding engineers of Pixar, and a giant in computer graphics, also has this condition. He even did a survey that found his artists where more likely to be on the aphantasia spectrum than managers. Dunno, maybe some people are so driven to create what they cannot think or see.

comment 1y ago · link · parent

From the paper:

Structured State Space Models and Mamba. Models like Mamba [Gu and Dao, 2023] can be in- terpreted within GWO as employing a sophisticated Path, Shape, and Weight. The Path is defined by a structured state-space recurrence, enabling it to model long-range dependencies efficiently. The Shape is causal (1D), processing information sequentially. Critically, the Weight function is highly dynamic and input- dependent, realized through selective state parameters that allow the model to focus on or forget information based on the context, creating an effective content-aware bottleneck for sequences.

comment 1y ago · link · parent

> The irony, of course, is that if you've read this far, it may mean you’ve already mastered a rare skill: sustained attention in a world of distraction.

No, sorry I read the first and last sentence. This is why I like the short format more then the long forms, it often boils down to the same clever narrative trickery without waisting 3 hours of your life.

comment 1y ago · link · parent

Wow there is so much spacing after the "of" that I read it as "U.S. Department of space war"

comment 1y ago · link · parent

Not clear from the article but a reasonable presumption for sure.

comment 1y ago · link · parent

Ok this is worrisome news, but from what I could gather from the article this a novel technique with no historic data. Why can't this be something that the Southern Ocean does?

comment 1y ago · link · parent

Ok, sum types and product types

comment 1y ago · link · parent

> we turn our attention to the dual of records – variants.

How is this the case, can someone give me an example?

comment 1y ago · link · parent

You don't even need XML anymore to do XML, "thanks" to iXML where you can provide a grammer of any language and have that work as if you are working with XML. Not saying that is a good idea though.

comment 1y ago · link · parent

Yes it does:

  function* greeter() {
    const name = yield "What's your name?"
    yield `Hello, ${name}!`
  }
  const gen = greeter()
  
  console.log(gen.next().value)
  console.log(gen.next("Alice").value)

comment 1y ago · link · parent

Yes, this is what Effect-TS is doing for JavaScript, minus the syntactic sugar, but I don't know if this is a good idea in the end. It reminds me of the Spring framework, DI is also a form of AE, but it spreads like cancer through the code. The other day I was watching this talk[1] from EffectDays on how to use effects on the frontend and the entire talk was a dude showing boilerplate that did nothing. I think that AE is a beguiling idea, it lets you express imperative code in a functional language, but in a language like JS the added work of wrapping everything in a function feel like a step down from writing the simples JS you can imagine. Just as a counter example, there is also canvasmotion[2] which also uses coroutines to express scenarios for 2D graphics and this feels like it is making something hard easier.

[1] https://www.youtube.com/watch?v=G_jp87gxILE [2] https://motioncanvas.io/

123