HNHacker News
TopNewBestAskShowJobs

Mr_P

462 karma · joined March 1, 2014

submissionscomments
Mr_P··on World Labs Is Joining AMD
Congrats to the team on such a successful exit!

I'm curious how much the recent AI 3D modeling trend (Astra post-trained to use Blender) would have impacted this.

World Labs' entire tech stack becomes potentially obsolete when anyone can prompt GPT/Claude to create a simulation-ready 3D model from a photograph.

Mr_P··on MIT creates method to force AI to comply with safety rules
If you click through to the paper, it has approximately nothing to do with what this HN post title suggests.
Mr_P··on Gemma 4 12B: A unified, encoder-free multimodal model
Android and Chrome need on-device AI capabilities. Google can't lock down those weights like it can with server-side ML.

So it's easier to just release those models as open source and make it official, since someone would inevitably hack the weights out anyway.

Mr_P··on Launch HN: Twill.ai (YC S25) – Delegate to cloud agents, get back PRs
How does this compare to Claude Managed Agents?
Mr_P··on AI for American-produced cement and concrete
I had to double check that this wasn't an April Fools joke. The GitHub project has commits from 2 weeks ago, so it's not.

Looking more closely though, this looks a lot like the Google "AI Cookie" from 2017, which also used Bayesian Optimization: https://blog.google/innovation-and-ai/technology/research/ma...

Mr_P··on Show HN: A deterministic middleware to compress LLM prompts by 50-80%
I looked around the repository, and it looks like it's just 3 regexes to strip whitespace or filler words:

https://github.com/ARPAHLS/skillware/blob/main/skills/optimi...

Mr_P··on Ask HN: Can Calculus be taught without differentiating or integrating by hand?
Years ago, my college multi variable calculus and linear algebra courses were both taught primarily using course materials that were interactive Mathematica Notebooks.

We had access to all of the symbolic algebra tools and were even expected to use them regularly for both courses. It was great!

I'm not sure how well this would extend to introductory courses though, especially if the standardized tests still expect integration by hand.

Mr_P··on SpaceX is building spy satellite network for US intelligence agency, sources say
Not really new news: https://www.space.com/spacex-starshield-space-force-contract (Oct 2023)
Mr_P··on With the rise of AI, web crawlers are suddenly controversial
Those same companies often invest in accessibility for vision-impaired users. I'm not sure you need a screen capture to scrape content when the site is designed to be navigable with a screen reader.
Mr_P··on Gemini: Fast Failure Recovery in Distributed Training with In-Memory Checkpoints [pdf]
For anyone else who was confused to see a paper use the same name as a commercial product, it looks like Google Gemini was announced in May, whereas this was submitted to SOSP that had an April submission deadline.
Mr_P··on MatX: Efficient C++17 GPU numerical computing library with Python-like syntax
GPU performance per dollar is only competitive for specific workloads. For extremely large scale compute, getting enough data center GPUs can also be challenging.
Mr_P··on I Looked into 34 Top Real-World Blockchain Projects So You Don’t Have To
What a convenient source of liquidity for the various drug cartels in El Salvador who need to launder their money.
Mr_P··on How “let it fail” leads to simpler code
For all the hate that Java tends to get, the language natively supports this distinction between:

* Expected errors - Checked Exceptions

* Unexpected errors - Unchecked Exceptions

Idiomatic Java also makes heavy use of asserts, e.g. using the Guava Preconditions library.

Mr_P··on Tension Inside Google over a Fired AI Researcher’s Conduct
I think they should have let him publish the paper.

We've seen time and again that various trends in ML turn out to have actually been dead-ends.

A few examples: https://arxiv.org/abs/2102.06356 https://arxiv.org/abs/1905.03678

That said, I've also seen plenty of competitive drama in FAANG research labs, so this story is not hard to believe. More senior engineers often will use their seniority to power-grab control of projects. It sounds like Google execs did the right thing in the end.

Mr_P··on Code quality only matters in context (2019)
This is literally the 'O' in SOLID.

The key idea is to break code into "chunks" that each do one thing.

Then, if you have to add a new feature, it goes into another chunk, instead of editing/modifying existing code.

The same logic applies to system design at different scales, whether fine-scale OOP or coarser-scale (micro)service architecture. The ideal size of an individual "chunk" is somewhat subjective & debatable, of course.

It's like Haskell-style immutable data structures, but applied to writing the code, itself.

Mr_P··on “What if it changes?”
Microservices is just OOP/dependency-injection, but with RPCs instead of function calls.

The same criticisms for microservices (claims that it adds complexity, or too many pieces) are also seen for OOP.

Curiously, while folks sometimes complain about breaking up a system into smaller microservices or smaller classes, nobody every complains about being asked to break up an essay into paragraphs.

Mr_P··on Flags Are a Code Smell (2014)
It's not so much the existence of the flag, itself, but rather using an if-statement at the deepest-level of the call stack to conditionally modify behavior.

This talk gives a great overview of why boolean flags (rather, if-statements) can be a code smell: https://www.youtube.com/watch?v=4F72VULWFvc

OP's blogpost advocates for data-oriented design (e.g. Entity Component Systems) as a mechanism for avoiding this, whereas the talk I've linked advocates for OOP. Both mechanisms are equally valid (imho) and are inline with widely-adopted industry practices for software architecture.

Mr_P··on At one company I worked at only one thing mattered: the yearly bonus
If you replace the word "bonus" with "promo", then you unfortunately get an eerily-accurate reflection of the state of FAANG companies.
Mr_P··on Drawing a circle, point-by-point, without floating point support
The author titled one of the sections "Midpoint circle algorithm".

There happens to be a Wikipedia page on "Midpoint circle algorithm": https://en.wikipedia.org/wiki/Midpoint_circle_algorithm

The page claims, "Bresenham's circle algorithm is derived from the midpoint circle algorithm."

The author of this blog post even made it clear, at the end of their article, that... "many explanations of midpoint algorithm use the final, optimized version. But I added several unoptimized steps."

I think there's a lot of value in a blogpost that demonstrates how someone could re-derive a widely-used algorithm from scratch.

Mr_P··on Ask HN: What do you do when competition signs up for your service?
> unless you have some indication people are increasingly picking the competitor over you, or especially and more simply leaving you in favour of the competitor.

If this happens, you've already lost. Software development has long lead-times. By the time there is significant customer attrition, bending the curve will be immensely difficult.

Good engineering strategy requires over-reacting to the right signals, and trends in the broader ecosystem are a wonderful source of signals. Large tech companies know this, and there's a reason why they'll quickly throw billion-dollar budgets behind exploratory efforts in response to competitors.

That said, it certainly depends on the industry. Some sectors are more fast-paced and competitive than others.

Mr_P··on UCLA hiring Asst. Adjunct Professor “on a without salary basis” (PhD required)
I'd bet someone just wanted to teach a course for fun and without compensation, but they had to formalize it and pose an actual job listing online for a month.

Probably explains why the "Open date" & "Final date" are just 30 days apart.

Mr_P··on C++ Modules Might Be Dead-on-Arrival (2019)
There's a 2016 CppCon talk here about making C++ Modules work at scale for Google's 100Mloc mono repo: https://www.youtube.com/watch?v=dHFNpBfemDI

So, apparently it can work. I don't don't how much Google's internal Module incarnation differs (if at all) from what was ultimately published in the standard, but I'd expect it to be similar.

The article discusses a problem of resolving dependencies between compiling different c++ files. I'm no expert, but I think this dependency graph is implicitly baked into the build system, with tool-assisted user-written bazel rules.

Mr_P··on Implicit In-order Forests: Zooming a billion trace events at 60fps
If generalized to 2D (and over the unit sphere), you'd get Google's S2 library (https://s2geometry.io/).

In 3D, the same can be done with morton codes (or a 3D hilbert curve) to build an implicit octree. Some raytracing systems use this for fast BVH construction.

In either case, this approach differs from mipmaps in that the underlying data can be sparse, and is simply stored in a sorted array.

Mr_P··on TSMC and Google push chipmaking boundaries with 3D 'stacking'
I wouldn't be surprised if Google's TPU's pushed them far over the edge on this. I'd bet TPUs running inference for Ads models can basically print money for the company.

They've also already been building their own network chips for some time. So, given the scale of their datacenters, I think it's entirely reasonable that they'd outpace nvidia.

Mr_P··on Using Vim for C++ Development
CLion (and other IDEs) have pretty good vim plugins: IdeaVim, VsVim , Vrapper.

They're not perfect, but I also made the switch from vim to CLion and never looked back. With a half-decent plugin for editing text, there's not much value in using a more minimalist vim setup IMHO.

Mr_P··on Two Way Mirror Improves Video Conferencing
IOS 13 has a feature that can do something to that effect:

https://arstechnica.com/gadgets/2019/07/facetime-feature-in-...

Mr_P··on Rust – How do I create a global, mutable singleton? (2015)
Dependency injection systems (like Dagger or Guice) are essentially programming languages that specifically model this kind of initialization-vs-runtime distinction. Dagger is actually implemented as a compiler extension.

Singletons can be declared once, and then provided to various systems that need it, with read-only access.

In fact, they're more flexible than that: one can declare multiple nested "scopes" that each have their own initialization phase. For example, a web server could have one scope for process-wide singletons, and another for request-scoped "singletons".

The only thing missing is that these DI systems are for java, which doesn't have the const-correctness you'd ideally want. I'm not aware of any equivalent (and widely-used) systems for languages like c++ or Rust.

(Yes, I can feel hundreds of HN readers rolling their eyes as they read this, given the bad rep. DI systems have, but they're widely popular among FANG companies for a reason.)

Mr_P··on Ask HN: Tips for students before starting their first job
> Which advice did/would have helped you landing your first job after university?

Take a few advanced, specialized CS classes by your 3rd year. These often have large end-of-semester projects that can be fairly open ended.

These final projects are a great way differentiate yourself from the thousands of other CS grads looking for jobs.

Sure, you could get an 'A' in class by doing the bare minimum for a project. Alternatively, you could go beyond course requirements and have something to show off for potential employers, even if just another resume item to use as a conversation-starter. If you're doing the project anyway, going an extra 10% over the top is relatively easy, especially compared to trying to land a meaningful contribution to an open-source project or building a separate portfolio project from scratch.

Mr_P··on Anthony Fauci says staying closed too long could cause irreparable damage
You could Google for "t-shirt sleeve mask" and make your own.

Etsy can also be quite fast.

Mr_P··on The SF Anti-Mask League of 1919
"Most experts think that flu viruses spread mainly by droplets..." (https://www.cdc.gov/flu/about/disease/spread.htm)
Page 1 of 3Next →