Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

15,025 karma · joined Apr 22, 2012 (14y ago) · 2,479 submissions

sfir6i2z@mailer.me
Submissions

comment 2y ago · link · parent

This article might provide some insight:

https://earthly.dev/blog/bazel-build/

My thoughts, as someone who has done a lot of build engineering, but that has only a small amount of experience with bazel:

If you are working with languages that are well supported by existing, maintained bazel rules, maybe. Otherwise, the answer is likely "no". You do not want to take on the burden of maintaining significant rules, or figuring out how to mate your ecosystem of choice to an opinionated build system that nobody else in your ecosystem uses.

If you can manage with something easier to setup, it probably makes sense to do that instead. My general experience in startups is that you have to "pick your battles" constantly. You don't have the luxury of infinite time and resources. Work on the build system has a high opportunity cost.

Most developers and other people who aren't build nerds care about the answer to two questions in regard to builds:

1. Is the build fast enough?

2. Is the build working?

That's it. This is frustrating when they don't understand the other important aspects of build system quality, but it is also, admittedly, somewhat of a pragmatic perspective.

There is much leeway inherent in the speed question. If the build is slow, people can wait. Do they have any other choice? There is plenty of other work to do while they wait.

If the build doesn't work, you, THE build guy, are going to feel the pressure to get it working again quickly. This often turns to bodging, and eventually to something resembling life support. However, nobody will care how much of a brittle, knotted mess the build code is if it still manages to mostly work.

To put it bluntly: A startup company can probably survive with a shit build system. And that might even be the right answer depending on the context.

I would personally be perfectly happy to get paid to set up a beautiful, apex example of a build system for a startup, whether it makes business sense or not. My professional integrity just won't allow me to recommend that path unless I think it's justified.

I might recommend to start with a script, or a makefile, or a ninja generator, and see how that works out first. After all, that is how Google did it for a long time before they decided to create Blaze.

comment 2y ago · link · parent

No, you can use https://github.com/bazelbuild/rules_jvm_external

comment 2y ago · link · parent

If you haven't discovered recursive path expansion with `**` yet, which is supported by a number of popular shells, including bash, it is about to improve your shell life.

comment 3y ago · link · parent

There is a YouTube channel largely focused on this topic:

https://www.youtube.com/@the_aesthetic_city

comment 3y ago · link · parent

There are even more fundamental mistakes in the concept of page styling. For example, that a webmaster should attempt to choose a readable font size and font colour on behalf of their users without knowing anything about the users' needs in that regard.

186.

Network Earth Rotation Service(earthrotation.smce.nasa.gov ↗)

4 points · by oftenwrong · 3y ago · discuss

comment 3y ago · link · parent

I am not familiar with a project that does that specifically. However, you can easily perform that type of operation with git-filter-repo and its --commit-callback flag , which lets you modify commit objects with a custom Python snippet.

https://github.com/newren/git-filter-repo

comment 3y ago · link · parent

Make-like build system. This would expose students to a few useful concepts, and can be a 'jumping-off point' into various more advanced concepts.

- topological sorting the build graph - what is a graph - running child processes - what a process is - process api - interaction with the filesystem - r/w files - mtime comparisons - how computers store time - what is incremental execution

I would suggest to skip parsing, and use a Python literal to hold the 'Makefile'-equivalent dependency graph data structure.

You let students come up with their own fun build graphs, like making sushi:

tuna_maki -> nori, cooked_rice, tuna_fillet, chef, sushi_roller

cooked_rice -> uncooked_rice, rice_cooker, water, rice_seasoning

tuna_fillet -> tuna_slab, knife

tuna_slab -> fishmonger, money

nori -> algae, dehydrator

And then, when executed, it would print the steps, or say that a target was already made.

comment 3y ago · link · parent

On a related note, I dislike when time zones are omitted from displayed datetimes. I have to guess: Is it my client's tz, the server's tz, UTC, or something else?

190.

Caltrans exec who protested a freeway expansion gets demoted(latimes.com ↗)

99 points · by oftenwrong · 3y ago · 57 comments

comment 3y ago · link · parent

I am surprised that cardboard (corrugated fibreboard) furniture is not more common. It is an impressively durable and strong material despite its low cost. We could all have the option of cheap, lightweight, easy-to-move, utilitarian, eco-friendly furniture. There are only a few companies, like https://www.chairigami.com/ , that produce such furniture.

192.

America Has No Transportation Engineers(nextcity.org ↗)

2 points · by oftenwrong · 3y ago · 1 comment

comment 3y ago · link · parent

I cannot see myself subscribing until they make the search API generally available.

>NOTE: The Search API is currently only available to customers of the Kagi Teams plan. Please reach out to vlad@kagi.com for invite.

https://help.kagi.com/kagi/api/search.html

It sounds like an excellent product, but I don't want to be forced to use their client/interface; I want to be able to make my own.

comment 3y ago · link · parent

The OCI runtime spec includes vm-related config, so you can create a runtime bundle that specifies that the container should boot with a specific kernel, for example.

https://github.com/opencontainers/runtime-spec/blob/main/con...

comment 3y ago · link · parent

Based on my reading, Permazen does insulate the user from the data organisation.

https://github.com/permazen/permazen/wiki/FAQ#architecture

It provides a Java view of the data, and handles translating operations in that later into operations on the underlying stores.

196.

Ciaran Cannon: We have a blind spot when it comes to the dangers of cars(independent.ie ↗)

8 points · by oftenwrong · 3y ago · discuss

comment 3y ago · link · parent

>For the record, I'm not interested in reading whether someone selected a 'yellow dress' or 'purpley pink flowers' or who picked someone up when. I'd be more interested in reading about actual intersex issues.

That is all relevant. The immense gravity of her decision to become openly, publicly intersex, and the hours of apprehension and coaching required to go through with it, is a significant aspect.

comment 3y ago · link · parent

One of the chief benefits of Earthly is builds that are always clean and predictable. This is especially important on a shared build server.

comment 3y ago · link · parent

Earthly makes use of BuildKit, which essentially executes the build steps in containers. It provides more isolation from the CI runner / dev workstation. Instead of having developers manage their own build tools, Earthly makes it easy to have the build definition manage them.

comment 3y ago · link · parent

Make provides incremental execution of the build graph. It is aware of the dependency graph, and the state of inputs and outputs. It will (ideally) only execute the minimal build rules necessary.

A shell script that checks file mtimes to determine what has already been built, and therefore what can be skipped, is close in spirit.

Make variants like GNU Make have additional functionality, like automatic concurrent execution of parts of the build graph.

comment 3y ago · link · parent

Multiple apps can access a single database, so where's the problem?

comment 3y ago · link · parent

Java has a REPL, jshell, which was released with JDK 9 in 2017.

203.

A fresh example of how zoning has become a micromanaging busybody(threadreaderapp.com ↗)

4 points · by oftenwrong · 3y ago · 2 comments

comment 3y ago · link · parent

Missing a mention of buildkit, which compiles various high-level build description languages (including Dockerfile) into a low-level build graph execution, which supports all of the bells and whistles of advanced build infrastructure, such as remote execution and remote caching.

https://docs.docker.com/build/buildkit/

I am particularly interested in build systems, so I am biased, but I think this is one of the coolest things coming out of Docker. It is a bit painful to see so much fanfare at DockerCon about Docker Desktop stuff, and so few mentions of more foundational things like buildkit and rootless container support.

205.

An Update about Software Engineering Daily from Jeff Meyerson's Family(softwareengineeringdaily.com ↗)

1 points · by oftenwrong · 3y ago · discuss

comment 3y ago · link · parent

Typical provides "asymmetric" fields to assist with evolution of types:

https://github.com/stepchowfun/typical#asymmetric-fields-can...

>To help you safely add and remove required fields, Typical offers an intermediate state between optional and required: asymmetric. An asymmetric field in a struct is considered required for the writer, but optional for the reader. Unlike optional fields, an asymmetric field can safely be promoted to required and vice versa.

comment 3y ago · link · parent

It is a beautiful building in isolation, but the city around it seems quite ugly and unpleasant to walk around.

comment 3y ago · link · parent

The worst part is that it's typically harder to repair the "accidentally load bearing" change than it was to create it in the first place.

209.

The Most Important New Disinflation Indicator(apricitas.io ↗)

1 points · by oftenwrong · 3y ago · discuss

210.

The Worst Traffic in Japan is not in Tokyo [video](youtube.com ↗)

11 points · by oftenwrong · 3y ago · discuss

1
678
83