HNHacker News
TopNewBestAskShowJobs

martincmartin

7,330 karma · joined May 12, 2008

Enjoying life.
submissionscomments
martincmartin··on Tether Withdrawals Top $10B
Like the bank run scene from It's A Wonderful Life: https://youtu.be/iPkJH6BT7dM?t=45
martincmartin··on Minimalism in programming language design
Many domains are inherently complex. If your programming language is simple, then the complexity will be in the code. Think Java's boilerplate, or having to re-implement hash tables every time in C because you can't abstract over data types.

In a wood shop, you can do everything with a hammer and chisel. You can make a table leg with them. It'll take a long time and won't be super round. However, having a lathe makes it much faster and gives you a better end result.

Also, it's been said that design patterns are just ways around missing language features. What one person considers language complexity, another seems as an essential abstraction.

martincmartin··on “Amateur” programmer fought cancer with 50 Nvidia Geforce 1080Ti
How could it be harmful? Is it just because of errors, i.e. false negative means person won't talk to doctor and won't be caught early; false positive means needless worry, maybe tarnish more general medical industry? Or something else?
martincmartin··on Town Seized Building, Offered to Return It If Owners Bought Two Cars for Police
> There needs to be a direct challenge against this type of extra-judicial seizure in the US Supreme Court as it's a clear challenge to the entire operation of the rule of law and legal system.

There has been, and the Supreme Court upheld it. As I recall, they didn't even bother hearing the case.

martincmartin··on The Coming Food Catastrophe
TFA talks about that. Before the food crisis was in the news, the energy crisis was in the news.
martincmartin··on Eve Online fans cheer Microsoft Excel features at annual Fanfest
What are some other games where spreadsheets help? I'll start:

- Kerbal Space Program. Figuring out the sizes of different stages, how many solid boosters to add, etc.

- Factorio. Ratios of different factories, mostly for creating science packs.

- Cookie Clicker. Figuring out what to buy to get the best marginal cookies per dollar.

martincmartin··on A Dutch city testing the future of urban life
It's not cutting the climate-change impact of food. It's cutting the climate-change impact of food miles. As you say, overall it's making things worse, e.g. increasing the climate-change impact of every other delivery but food.
martincmartin··on When buying the dip doesn’t work: An analysis of the dot-com crash
If current pace of inflation persists, then you want to be in equities chasing cash flow in enterprises with pricing power. What you don’t want is to stay in cash.

And if inflation ebbs, you want the opposite.

Both outcomes are possible. So it's best to hold a well diversified portfolio and not try to time the market. Just rebalance once a year.

martincmartin··on Ali, what’s up
Reminds me of the "Translate server error" fails: https://languagelog.ldc.upenn.edu/nll/?p=11907
martincmartin··on A minimal C compiler in x86 assembly
Their goal is to compile GCC, so whatever subset of C GCC uses.
martincmartin··on How to Corrupt an SQLite Database File
Thanks! If you follow the thread, they tried 8 more, all of which passed. So that's 10 passing / 2 failing. Still, it answers my question.
martincmartin··on Programming Languages: Application and Interpretation (2021)
Any good recommendations for types, as used by programming languages? Is "Types and Programming Languages" by Pierce still the best intro, even though it's 20 years old?
martincmartin··on How to Corrupt an SQLite Database File
"Unfortunately, most consumer-grade mass storage devices lie about syncing. Disk drives will report that content is safely on persistent media as soon as it reaches the track buffer and before actually being written to oxide. This makes the disk drives seem to operate faster (which is vitally important to the manufacturer so that they can show good benchmark numbers in trade magazines)."

Is this also true of SSDs?

martincmartin··on A little fixed point math for embedded audio
Does anyone know of a good fixed point library, preferably for C++? Fixed point seems straight forward enough that people tend to just roll their own, but it would be good to have a proper API to make the resulting code easier to read.
martincmartin··on Musk announces funding secured for Twitter buy
It's like buying a house with a mortgage. You wouldn't say you're buying a $1MM house for $200k just because you had a 20% down payment.
martincmartin··on Eden
Yeah the fbcode build system was hella slow. A minute plus just to build the "action graph." I did marvel at all the lost productivity, especially since an minute plus is enough time for me to context switch to another task, or at least go get (another) cup of tea...

Mercurial / Eden were pretty fast though. Never had complaints about them.

martincmartin··on Eden
How so? I never thought of it as slow.

Source: Was a Meta infra engineer until last month, working in CDN & LogDevice, among other teams.

martincmartin··on Eden
I worked at Meta and used Eden. I remember it as a virtual, FUSE based file system for a huge monorepo. Basically, if you have GBs of data in your monorepo, and any individual user accesses < 1% of it, then there's no point in having each "hg update" update the other 99%.

But we were explicitly dissuaded from having binary data. I worked on image processing, and wanted to store test images for unit tests in hg, but the consensus was, that was a bad idea. So we stored them in a separate data store, and had a make rule to fetch them as part of the build.

martincmartin··on An antimatter experiment shows surprises near absolute zero
Classical mechanics has F = ma. Quantum mechanics has Schrodinger's Equation. Given a probability distribution for the location of your particle, and the potential (as in classical mechanics, just the integral of the force), it describes how that probability distribution evolves over time.

For something orbiting a nucleus, the only parameters that matter are electric charge and mass.

This stuff was figured out in the 1920s, and is taught in a year or two of undergraduate physics. The examples are usually an electron orbiting a proton (the hydrogen atom), but work just as well for muons, or anything else. It's only once you get inside the atom that you get into more advanced stuff.

martincmartin··on Ask HN: Any weird tips for weight loss?
Eat less. But here's the thing that people somehow seem to miss: that means it's a battle with your appetite. So focus on things that reduce your appetite, or don't increase it.

Bad carbs, that turn into sugar in your body, will stimulate appetite. When farmers want to fatten up pigs, they give them carbs. Avoid sugar, white bread, etc. Go for low glycemic breads.

Exercise has a lot of benefits and you should definitely exercise. It burns calories, but also stimulates appetite, so for weight loss, it's a wash. Sadly, exercise won't help you lose weight. But you should still do it for other reasons.

Fatty foods will actually make you feel full, so can be good. Snack on nuts. Eat peanut butter and jelly sandwiches, if you get jelly without added sugar and use it sparingly, on low glycemic bread.

In the end, you also need to up your mental tolerance for feeling hungry. Try to train your brain to be ok with feeling a little hungry, not eating at the first sign of hunger.

martincmartin··on Winning Wordle
TALES is almost as good as a first word, and isn't obtuse.
martincmartin··on The Factorio Mindset
What other games are like programming?
martincmartin··on Rustenstein 3D: Game programming like it's 1992
> a very high "effort to reward" ratio,

Sorry to be pedantic, but I think you mean the opposite? Big reward for modest effort?

martincmartin··on The McNamara fallacy: Measurement is not understanding
Two examples come to mind:

- Investing your money with the fund manager who has the highest returns over the last year, or even 5 years, is called "performance chasing" and generally has worse returns than investing in an index. Think investing in dot com stocks in 1999, and real estate in 2007.

- In Moneyball, about using stats to improve a baseball team, they didn't care how many home runs someone hit. In fact, getting runs that way was considered bad. They wanted to get players on base and them get them home, even if through walks. There's a part of the book where a player is getting a lot of home runs, and therefore increasing the team's score, but the manager doesn't like it. "It's a process", "we have a process" he keeps saying.

martincmartin··on Royal Society cautions against censorship of scientific misinformation online
the scientists themselves are often complicit in the misrepresentation of their own research as it means more of those sweet, sweet grants.

The grant agencies are at least part of the problem. They seem to have set up the wrong incentives.

martincmartin··on GDPR penalty for passing on of IP address to Google by using Google Fonts
> (I assume they mean self-hosting)

Or proxying. Or proxying with caching, which is kind of part way between self-hosting and proxying. :)

martincmartin··on “Chatbots: Still Dumb After All These Years”
The title references Paul Simon's album & song "Still Crazy After All These Years."

https://en.wikipedia.org/wiki/Still_Crazy_After_All_These_Ye...

martincmartin··on The Righteousness Fix
Not many people these days dispute the idea that you can become addicted to gambling.

https://www.economist.com/international/2022/01/01/are-video...

martincmartin··on Ask HN: How do I manage the profit of a successful website?
Invest it in a 3 fund portfolio.

https://www.bogleheads.org/wiki/Three-fund_portfolio

martincmartin··on Ask HN: Who wants to collaborate?
yep, exactly. When Facebook changed their name to Meta, people were looking for a good acronym for the biggest tech companies.
← PreviousPage 5 of 23Next →