Better HN
topnewbestaskshowjobs
Log inSign up

MathMonkeyMan

2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions

Submissions

comment 1y ago · link · parent

I remember a Rich Hickey talk where he described Datomic, his database. He said "the problem with a database is that it's over there." By modeling data with immutable "facts" (a la Prolog), much of the database logic can be moved closer to the application. In his case, with Clojure's data structures.

Maybe the the problem with CI is that it's over there. As soon as it stops being something that I could set up and run quickly on my laptop over and over, the frog is already boiled.

The comparison to build systems is apt. I can and occasionally do build the database that I work on locally on my laptop without any remote caching. It takes a very long time, but not too long, and it doesn't fail with the error "people who maintain this system haven't tried this."

The CI system, forget it.

Part of the problem, maybe the whole problem, is that we could get it all working and portable and optimized for non-blessed environments, but it still will only be expected to work over there, and so the frog keeps boiling.

I bet it's not an easy problem to solve. Today's grand unified solution might be tomorrow's legacy tar pit. But that's just software.

comment 1y ago · link · parent

The "eigenchris" Youtube channel teaches tensor algebra, differential calculus, general relativity, and some other topics.

When I started thinking of vector calculus in terms of multiplying both vector components and the corresponding basis vectors, there was a nice unification of ordinary vector operations, jacobians, and the metric tensor.

comment 1y ago · link · parent

Thanks. I think 2021 was a high point, but my scaper doesn't go further back for some reason -- I think that one of my assumptions about how things are formatted doesn't hold before than.

comment 1y ago · link · parent

The last time I was looking for a job, I wrote a little scraper that used naive regex to classify "HN Who's Hiring" postings as "AI," "full time," etc.

I was looking for a full time remote or hybrid non-AI job in New York. I'm not against working on AI, but this being a startup forum I felt like listings were dominated by shiny new thing startups, whereas I was looking for a more "boring" job.

Anyway, here's:

- a graph: https://home.davidgoffredo.com/hn-whos-hiring-stats.html

- the filtered listings: https://home.davidgoffredo.com/hn-whos-hiring.html

- the code: https://github.com/dgoffredo/hn-whos-hiring

comment 1y ago · link · parent

I was going to comment that "what the fork" might not work for a client/server build system like Bazel, but now I have something to google instead.

comment 1y ago · link · parent

My dad practiced dentistry since the 70s and never digitized his office. Every patient had a folder. There was a phone, a typewriter, and a calendar. I don't know how insurance claims worked, maybe by post.

When I moved to New York I was surprised to find a dentist whose practice was much the same, though he did have a few computers around. He retired recently.

Computers no doubt can improve things; a lot of it seems like a no-brainer. But I'm starting to doubt that they're there to improve things.

comment 1y ago · link · parent

I still have to learn C++20 concepts and now we have a full-fledged reflection system?

Good, but I think what happens is there are people on the bleeding edge of C++, usually writing libraries that ship with new code. Each new feature is a godsend for them -- it's the reason why the features are proposed in the first place. It allows you to write libraries more simply, more generally, more safely, and more efficiently.

The rest of us are dealing with old code that is a hodgepodge of older standards and toolchains, that has to run in multiple environments, mostly old ones. It's like yeah, this C++26 feature will come in handy for me someday, but if that day comes then it will be in 2036, and I might not be writing C++ by then.

comment 1y ago · link · parent

I read the article and I feel like I don't understand what was being contested. One lawyer says "yes thing" and the other says "no thing."

What, precisely, is thing? I'm not a lawyer.

Anyway, yeah we know when women are menstruating now so let's cash out. What was the issue, though? Is the idea "I use this to track my own schedule, not to be sold out to strangers"?

Because, I'm sorry, but whether it's menstruation, palpation, or childbirth, if you put it in an app then the whole point was to sell you out.

Good that class action is questioning this, but I wonder how much is law and how much is posturing feels.

comment 1y ago · link · parent

Here's a link to the paper on the arxiv: https://arxiv.org/abs/2502.06137

comment 1y ago · link · parent

"I'm in charge, I enforce the rules, I'm a big deal."

comment 1y ago · link · parent

smithkl42 says that NPR is leftward, and you say that it's rightward. Maybe we're all operating from different baselines.

comment 1y ago · link · parent

For a young woman to reply to "Language" on Twitter with "Suck my dick and balls I'm working at Nasa" is pretty funny. But there are so many people without a sense of humor.

comment 1y ago · link · parent

Need money to live. Maybe you get it directly from customers, or more likely from investors, or indirectly through an employer. The adult part is being able to choose and change where the money comes from.

comment 1y ago · link · parent

I don't have kids, so I really can't comment, but I'll describe my setup.

Ublock origin and Sponserblock on Firefox. I also have an extension (forget the name) that blocks recommendations after a video. Disable autoplay.

There are also extensions that replace the home page with the subscriptions page.

But really, if BS exists on the internet, either your kids will find it or it will be shown to them. There's nothing you can do.

comment 1y ago · link · parent

My first team lead ever said that what he liked about programming is that "it's all in your head" and "you can do whatever you want."

comment 1y ago · link · parent

I'd be interested in seeing the Scheme code if it's open source!

comment 1y ago · link · parent

Neither I nor ChatGPT could find it again.

comment 1y ago · link · parent

I think the idea is you never release the first version.

comment 1y ago · link · parent

I do this:

    $ curl 'https://who.knows.man/installer.sh' >/tmp/install
    $ vim /tmp/install
    [... time passes ...]
    $ sh /tmp/install

comment 1y ago · link · parent

Chandler Carruth told a similar story in one of his talks.

He met Ken Thompson and saw beautiful C code for the first time because he had encountered a performance problem in a service. The service had to choose a policy to enforce (or something) based on the incoming request. It was taking too long to match the criteria of each potential policy against the request.

Ken wrote a finite automata based pattern matcher that would simultaneously advance through all of the policies' predicates. It was perfect, and it was much faster than the existing code.

Then somebody noticed that 99.9% of requests matched a particular policy, so they changed the existing code to just check that predicate first, and the code sped up a zillion times, much more than with Ken's solution.

comment 1y ago · link · parent

I thought that the trip was the point.

comment 1y ago · link · parent

> Any other condition on board which may lead to the spread of disease:

> TO BE DETERMINED

comment 1y ago · link · parent

I've heard that regenerative braking helps, but the relatively higher mass of an electric car (because of the battery) hurts. I wonder how it adds up in terms of brake dust produced.

comment 1y ago · link · parent

I was on a team that used `// TBD: [...]` for this purpose, so that the "TODO people" wouldn't notice.

comment 1y ago · link · parent

But could you do it while convincing yourself and everyone you're beholden to that you're not?

comment 1y ago · link · parent

That's and interesting and sensible claim. Do you remember where you learned that?

comment 1y ago · link · parent

It gets easier with practice.

comment 1y ago · link · parent

Now I get it, thanks for the explanation.

I wonder if "t -> -t" is lost in the Boltzmann step or in the hydrodynamic step.

comment 1y ago · link · parent

Modules are an attempt to make part of the language what currently requires a convention:

- A component is a collection of related code.

- The component has an interface and an implementation.

- The interface is a header file (e.g. *.h) that is included (but at most once!) using a preprocessor directive in each dependent component.

- The header file contains only declarations, templates, and explicitly inline definitions.

- The implementation is one or more source files (e.g. *.cpp) that provide the definitions for what is declared in the header, and other unexposed implementation details.

- Component implementations are compiled separately (usually).

- The linker finds compiled definitions for everything a component depends upon, transitively, to produce the resulting program/dll.

So much can go wrong! If only there were a notion of components in the language itself. This way we could just write what we mean ("this is a component, here is what it exports, here are the definitions, here is what it imports"). Then compiler toolchains could implement it however they like, and hopefully optimize it.

comment 1y ago · link · parent

The Navier-Stokes equations are a set of differential equations. The functions that the equations act upon are functions of time (and space), so the system is perfectly reversible.

It's just hard to figure out what the functions are for a set of boundary conditions.

1
8910
38