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 don't know, but when I was playing with finite difference code as an undergrad in Physics, all of the docs I could find (it was a while ago, though) assumed that I was going to use MPI to run a distributed workload across the university's supercomputer. My needs were less, so I just ran my Boost.Thread code on the four cores of one node.

What if you had a single server with a zillion cores in it? Maybe you could take some 15 year old MPI code and run it locally -- it'd be like a mini supercomputer with an impossibly fast network.

comment 1y ago · link · parent

I'd pay $155 for it, definitely. <https://anycrap.shop/product/eyeball-miniaturizer>

comment 1y ago · link · parent

Always did, as far as I know. Never knew why...

comment 1y ago · link · parent

I worked with a guy who railed against the conservatism of our company's releases. He said "new software has more bug fixes." Then again, he was maybe a kind of hardcore software quality guy -- not the sort to add "features" to a piece of infrastructure that had demonstrated its worth.

The only issue I have with software conservatism, like Debian, is that some new thing requires something newer. If you live in a world where you can do without the new thing, then it's really quite nice. Security patches are another matter, but are usually dealt with.

I like to be on the bleeding edge, but Debian was created for a reason. Only time can determine which configurations don't suck.

comment 1y ago · link · parent

Nevermind the fake stuff, the real stuff is scammy enough.

When you select an app to install on Google Play, it takes you to another screen confirming the install. But that install button on top is not for the app you selected, it's for a different, advertised app. You have to scroll down to find the confirmation button for the app you already instructed the store to install.

This isn't going to ruin any lives, but it's gross.

comment 1y ago · link · parent

How many times did I read "a pie-eating contest where the prize for winning is more pie" before clicking away?

1. The hacker news title.

2. The tab title.

3. The image at the top left.

4. The text section to the right of the image.

5. The second sentence.

6. Different crop of the same image from before, but now below the second sentence.

I know that this isn't a curious comment, but holy shit dude.

comment 1y ago · link · parent

Well there are some people who seem to live at my local McDonalds.

comment 1y ago · link · parent

Almost every command line tool has runtime dependencies that must be installed on your system.

    $ ldd /usr/bin/rg
    linux-vdso.so.1 (0x00007fff45dd7000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000070764e7b1000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000070764e6ca000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000070764de00000)
    /lib64/ld-linux-x86-64.so.2 (0x000070764e7e6000)
The worst is compiling a C program with a compiler that uses a more recent libc than is installed on the installation host.

comment 1y ago · link · parent

Thoughtful article. I read the introduction several times, picking it apart in my head.

> When done right, animations make an interface feel predictable, [...]

Predictable how? If you anticipate the animation, then you will have predicted it. But you also could anticipate the lack of an animation, and you will have predicated that.

> When done right, animations make an interface feel [...] faster,

Do they make the interface feel faster because no transition ever occurs in less time than the animation? Or is it that literal motion on the screen tricks us into thinking something is "going fast"? A nearly instantaneous, unanimated change in view must feel faster than an animation, no?

> When done right, animations make an interface [...] more enjoyable to use. [...]

This is true sometimes. It's particularly true when you're interacting with controls that have a "real physical world" analogy, like buttons, sliders, and page flips. On the other hand, if I click a button and a bunch of sparkles happen, that's not enjoyable to me.

> When done right, animations [...] help you and your product stand out.

If your product has animations and competing products do not, then yours stands out insofar that it has animations.

> But they can also do the opposite. [...]

Correct!

> So how do you know when and how to animate to improve the experience?

> Step one is making sure your animations have a purpose.

Or... don't use animations unless the app involves animation. Or do, there's nothing I can do about it.

comment 1y ago · link · parent

Guile has [multi-methods][1] and [fast hash maps][2], but not yet [dynamic vectors][3].

Clojure's data structures are easier to use, though.

[1]: https://www.gnu.org/software/guile/manual/html_node/Methods-...

[2]: https://www.gnu.org/software/guile/manual/html_node/Hash-Tab...

[3]: https://lists.gnu.org/archive/html/guile-devel/2022-01/msg00...

comment 1y ago · link · parent

> All you have to do is hire customer support who is empowered, knowledgeable and actually cares

Those people you have to pay, because they can do well in other positions. But paying them contradicts the goal of minimizing cost.

I'm not saying there isn't an opportunity to invest in top notch customer service as a product differentiator, but it's probably a safer bet to have barely-existing support and lower the sticker price.

comment 1y ago · link · parent

I uninstalled banking related apps from my phone years ago. I used it so infrequently that every time I did use it, it was as if it had been newly installed and didn't remember anything about me. Now I use a desktop web browser for anything finance (and it's Firefox on Linux, so thankfully that works for now).

comment 1y ago · link · parent

The most plausible deniability!

comment 1y ago · link · parent

Somebody make AI replace this guy with Donald Trump pretty please: <https://www.youtube.com/watch?v=lZbfNtDCHdM>.

comment 1y ago · link · parent

I've been reading his novels, and I like the story of the pigs.

Genetically tweaked to be more compatible with the humans that might harvest their organs, but then they became a bit too human. Then scientists were like fuck it how far can we go with this. Hyperpigs.

Scorpio is not as interesting a character as I would like, but he's a good pig.

comment 1y ago · link · parent

Everywhere I've worked, there is software written by those five people, who are now all rich and don't write code anymore, and I still would appreciate the courtesy of an explainer.

The trouble with good docs is that they are work to maintain, like good code. If we decide to change this component in a substantial way soon, which we likely will, I'd have to practically rewrite the docs! Why bother?

Because the docs are part of the code. Write the docs.

I don't expect to win this crusade, but I'll keep writing docs anyway. Then later people will modify the code without modifying the docs, and so the docs will be a lie, but still useful, I think.

It's like asking three people who are not closely familiar with a component, but who have worked with it, "what is this thing, how does it work?" You will get three different answers. It would be nice if one of them were a written description straight from the horse's mouth, even if the component is now more of a camel.

comment 1y ago · link · parent

There is an even higher level of testing that they call "system tests." Those are for things like tracking performance regressions. I think there's always a spectrum among the terms "system," "integration," and "unit."

comment 1y ago · link · parent

Integration tests at $DAY_JOB are often slow (sleeps, retries, inadequate synchronization, startup and shut down 8 processes that are slow to start and stop), flaky (the metrics for this rate limiter should be within 5%, this should be true within 3 seconds, the output of this shell command is the same on all platforms), undocumented, and sometimes cannot be run locally or with locally available configurations. When I run a set of integration tests associated with some code I'm modifying, I have no idea what they are, why they were written, what they do, how long they will take to run, or whether I should take failures seriously.

Integration tests are closer to what you want to know, but they're also more. If I want to make sure that my state machine returns an error when it receives a message for which no state transition is defined, I could spin up a process and set up log collection and orchestrate with python and... or I could write a unit test that instantiates a state machine, gives it a message, and checks the result.

My point is that we need both. Write a unit test to ensure that your component behaves to its spec, especially with respect to edge cases. Write an integration test to make sure that the feature of which your component is a part behaves as expected.

comment 1y ago · link · parent

I write documentation as I'm writing the code. In my opinion, the code is only as good as its documentation -- they're two parts of the same thing. It's mostly comments at the top of files, and sometimes a markdown file in the same directory.

This way, good documentation is priced into my estimate for the project. I don't have a work item "spend a few days documenting." Nope, if I'm doing a foo then that includes documenting a foo at the same time.

comment 1y ago · link · parent

I did some undergrad research on the [ADMX][1] experiment, which is searching for a theoretical particle by listening for its interaction with a microwave photon in a big, ultra-cold cylinder that can be tuned to different frequencies.

A while back, they thought that they might have found something at 700 MHz. Then went looking again and it was gone. My professor said that it was probably a CPU in the lab.

[1]: https://en.wikipedia.org/wiki/Axion_Dark_Matter_Experiment

comment 1y ago · link · parent

I use space-hyphen-hyphen-space because I'm always switching between systems and keyboards -- it works well enough.

comment 1y ago · link · parent

You mean that vibrating sound that the phone makes when a robocall comes in?

comment 1y ago · link · parent

Big scary box might as well be outright disallowing, since someone who isn't 100% sure about your software will likely be dissuaded by the warning. But if they want to install it, then they can.

My understanding of the article is that there is nothing that a user will be able to do to install your software.

> “developers [that we approve] will have the same freedom to distribute their apps directly to users through [installation] or to use any app store they prefer.”

So, less freedom.

comment 1y ago · link · parent

"Google to prevent users from installing programs on Android phones."

This might do more good than harm, since I'm willing to believe that scams involving APKs are prevalent, but come on. I need your permission to install software on my phone? Are you sure it isn't just that you want more control over everyone's phones?

comment 1y ago · link · parent

I wonder how many hours it would take to make a rug out of hundreds of disassembled basketball shoes.

comment 1y ago · link · parent

The JVM eats a chunk of memory in order to make its garbage collector more efficient. Think of it like Linux's page cache.

I haven't worked with too much Java, but I suspect that the distaste many have for it is due to its wide adoption by large organizations and the obfuscating "dressed up" tendency of the coding idioms used in large organizations.

The runtime isn't inherently slow, but maybe it's easier to write slow programs in Java.

comment 1y ago · link · parent

You can do hydroponics outside, but it will still be warm at night. And with hydroponics, you need to prevent the water from getting too warm -- the roots will rot. So you might have trouble during the day, too.

[This guy][1] does a bunch of hydroponics and hydroponics adjacent projects outdoors.

[1]: https://www.youtube.com/@Hoocho

comment 1y ago · link · parent

Problem: 15 year olds don't know how to read. Solution: Make books 25% cheaper.

Sure, it can't hurt, but are those kids or their parents gonna go out and buy books, and then, you know, learn how to read?

I wonder what the numbers are like in the US...

comment 1y ago · link · parent

If you're browsing with a browser, then there are 1000 ways to identify you. If you're browsing without a browser, then there is at least one way to identify you.

comment 1y ago · link · parent

I haven't used Datomic, but you're right that the part that requires over there is "single consistent source of truth." There's only ever a single node that is sequencing all writes. Perhaps as a result of this, it provides strong [verified ACID guarantees][1].

What I got from Hickey's talk is that he wanted to design a system that resisted the urge to encode everything in a stored procedure and run it on the database server.

[1]: https://jepsen.io/analyses/datomic-pro-1.0.7075

1
789
38