HNHacker News
TopNewBestAskShowJobs

substation13

776 karma · joined March 22, 2022

submissionscomments
substation13··on Kafka is dead, long live Kafka
Is there any source available for this?
substation13··on The combined power of F# and C#
Rich Hickey calls these protocols. In Haskell or Rust you get them via traits.
substation13··on The combined power of F# and C#
Many believe that F# is better for functional code and C# is better for imperative code. Hence F# immutable core and C# immutable shell.

But I think this is a myth. F# the language is better than C# at most things and certainly better overall. If you are going to use F#, you may as well go all in and get all of the benefits.

For web services, Giraffe or Suave combinators are much easier to reason about than ASP.NET MVC patterns.

substation13··on Tor’s shadowy reputation will only end if we all use it
I'm not convinced Tor could scale to a significant percentage of internet traffic using it.
substation13··on From Python to Elixir Machine Learning
Yes, it can be.

1. Loading data

2. Running algorithms that benefit from shared memory

3. Serving the model (if it's not being output to some portable format)

There are also general benefits of using one language across a project. Because Python is weak on these things, we end up using multiple languages.

substation13··on From Python to Elixir Machine Learning
Those are real issues though.
substation13··on Have attention spans been declining?
Anyone else read the headline and go straight through to the comments?

I think that HN, which has added deliberate friction elsewhere on the site, should consider hiding the comments link until you have clicked through to the article.

substation13··on Rethinking Infrastructure as Code from Scratch
It's a bit like how Rust limits dangerous operations to unsafe blocks
substation13··on Rethinking Infrastructure as Code from Scratch
> Second, this is still fine. Don't make changes outside of the IAC control. And if you do make them, retro-fix the IAC files until there is no diff with the actual state.

This doesn't work in practice. Some aspects of the business want to tweak things and it should be reasonably guaranteed that the automated side never touches it.

Terraform state gives this assurance because it won't destroy resources not under its state.

substation13··on Rethinking Infrastructure as Code from Scratch
With Terraform you can statically analyze the infrastructure definition with some guarantees of determinism etc. Arbitrary execution is allowed, as you say, but only in well-contained places, such as local_exec.

How can this work if, say, TypeScript is used as the definition language?

substation13··on Rethinking Infrastructure as Code from Scratch
Exactly. If you want portability across clouds, Terraform ain't it. The only way I know of to achieve that right now (for any reasonably complex architecture) is:

- Minimal amount of Terraform to deploy Kubernetes (which is different for each cloud provider)

- Helm (or similar) for deploying to Kubernetes

But then you have Kubernets to deal with.

substation13··on Rethinking Infrastructure as Code from Scratch
Adding a "real" programming language makes certain things easier, such as abstraction, but IMO they are too powerful for the task at hand. Do we really want an infrastructure description to be able to execute arbitrary code?
substation13··on Tips for programmers to stay ahead of generative AI
I would love LLMs to write documentation for me, even though I don't trust them with the code.
substation13··on Douglas Hofstadter changes his mind on Deep Learning and AI risk
Stacking shelves in a supermarket is a perfect example. 1000s of products means that a bit of experience is required to know where everything goes in order to quickly stack. With a HUD, workers become productive much faster (and are more inter-changeable) - which is something large enterprises love.
substation13··on Find out where you can afford to buy or rent in Great Britain
A job or a house: choose one
substation13··on Purely Functional Data Structures (1996) [pdf]
Using this to push Brainfuck at work
substation13··on How much memory do you need to run 1M concurrent tasks?
Function coloring is orthogonal to the underlying mechanism.

You can think of the Java / Go approach as adding the bind points automatically.

substation13··on Americans have never been so unwilling to relocate for a new job
If the prices have significantly risen since you purchased (as they have for most buyers) then moving even to the same quality of house makes you a net buyer because you need to take on more financing.

Remember, the day you buy a house, you are no richer. This is because the asset (house) is offset by the liability (the mortgage).

substation13··on Airbnb is making life hell for young renters in tourist hotspots
I wonder if wages have risen in response to this? You cannot operate a business that doesn't pay staff enough to live for very long.
substation13··on Don't believe the hype: why ChatGPT is not the “holy grail” of AI research
I can see LLMs as a novel front-end for a traditional search engine.
substation13··on Don't believe the hype: why ChatGPT is not the “holy grail” of AI research
It's really easy to get an LLM to hallucinate by asking an open ended question - the type typically answered by a Google search or checking Wikiedpia. However, this is not the best application of LLMs. This criticism is getting old.

LLMs are great at:

- Text synthesis given all of the facts in a prompt (expand these bullet points)

- Summarization (condense this text)

- Data extraction (fit this data into this schema)

- Fiction (virtual characters, scripts, etc.)

They will dramatically change these industries.

substation13··on UN Human Rights Chief Urges UK to Reverse ‘Deeply Troubling’ Public Order Bill
Free speech does not allow the right to do harm. We can debate where exactly that line is, but in my book protesting right outside of a clinic is harassment.
substation13··on UN Human Rights Chief Urges UK to Reverse ‘Deeply Troubling’ Public Order Bill
We can't let this "bundling" of laws allow things to slip though the net. The solution is to make a new bill with the good parts.
substation13··on Show HN: ScrapScript – A tiny functional language for sharable software
How should users write async, futures, option, result, etc. in Scrap?

My hunch is that if you do not put the syntax into the language, then it will be hard for the community to standardize on one preprocessing tool.

OCaml (which I am a fan of!) struggles with fragmentation here.

substation13··on Show HN: ScrapScript – A tiny functional language for sharable software
Hello!

This looks really interesting to me.

There is a feature I would like that I have never seen in a scripting language, and I wonder if Scrap might support it:

> Monadic bind points and applicative join points in the script language

Hopefully an example can convey what I mean.

Bind:

    do {
      let! x = some_value_in_a_monad

      x + 1
    }
Applicative:

    do {
      let! x = some_value_in_a_monad
      and! y = another_value_in_a_monad

      (x + y) * y
    }
Now when I embed this script, I would like my runtime interpreter to provide implementations of `let!` and `and!`. The script author defines the bind points and the runtime defines the effects.

Is this possible in Scrap?

substation13··on Europe’s Longest Bicycling Tunnel Opens in Norway
I believe that road wear is proportional to mass ^ 4
substation13··on My thoughts on OCaml
> Why would a company use ocaml?

Why wouldn't a company use Brainfuck?

substation13··on StableLM: A new open-source language model
I'm surprised that some of the cutting edge AI work is not being done in pure Rust. Why even have a binding layer?
substation13··on Incident with Git Operations, Issues and Pull Requests [resolved]
How much of GitHub stack is still Ruby? Is it an appropriate language at this scale?
substation13··on Small Project Build Systems (2021)
Good post. I am still hopeful that a large scale "backwards" build-system can be made ergonomic enough to be used on even small projects.

If Bazel didn't have so many gotchas, it could be the one:

    cc_library(
      hdrs = [ "app.h" ],
      srcs = [ "app.cc" ],
    )
Page 1 of 8Next →