HNHacker News
TopNewBestAskShowJobs

jasinjames

224 karma · joined March 1, 2022

submissionscomments
jasinjames··on FDA warns top U.S. bakery not to claim foods contain allergens when they don't
The number might be 0.2% for just sesame, but roughly 10% of Americans have some form of allergy[0]. I'm guessing the reasoning here is to attempt to prevent "allergen creep", where the endgame would be major manufacturers throwing their hands up and listing most products as possibly containing many allergens (or, as in this case, intentionally introducing unnecessary ingredients). If this were to happen, we would expect a number approaching 10% of consumers to have a needlessly large selection of foods they couldn't reliably purchase, even if there would be negligible risk otherwise.

At that point, the usefulness of requiring the labels to begin with is considerably diminished. Having a cottage industry of "actually correctly labeled" foods because the standard labels are poorly enforced seems inefficient, IMHO.

[0]https://www.foodallergy.org/resources/facts-and-statistics

jasinjames··on Are commercial "third places" a dying breed?
I heard from a Canadian friend of mine (very reliable source) that Tim's corporate changed to the same supplier of coffee beans that Starbucks uses. It's possible their other meal options were changed similarly.
jasinjames··on Plotille: Plot in the terminal using Braille dots
I think matplotlib's overwhelming API surface motivates a lot of work in the plotting space. I personally find that I need to relearn/recopy the API every time I need to use it, and I could never whip something up on a whim.

I actually use youplot[1] for this very reason so I can pipe small datasets into an exploratory visualization straight from the command line.

[1]https://github.com/red-data-tools/YouPlot

jasinjames··on AI copilots are changing how coding is taught
I think I agree with your point (I would pick a different example, though)

LLM programming removes the need to write tedious code, which means the author has fewer opportunities to ask themselves if there are easier ways to model the problem they're solving. We would never have gotten language features like Objects, Iterators, first-class functions, and exceptions if all of the boilerplate to emulate those features could be autogenerated so easily.

Going forward, there will be less impetus for programmers to pick better languages and abstractions for their work, since the boilerplate cost of picking the wrong one is subsidized by the llm.

So I think the issue isn't so much that people won't know the syntax rules and bizzare-semantics trivia, but that people won't realize that the syntax rules could be different and that the whole point is for them to make your life easier.

jasinjames··on Titanosaurs were the biggest land animals Earth's ever seen
I was an intern at a large museum in NYC in 2017. When I visited the gift shop, I found a book which was published when Pluto was still a planet. It was the same book I was given when I was little, ~15 years ago!
jasinjames··on Kagi and Wolfram
AFAIK that's the default monospace font for apple devices as well.
jasinjames··on Copyright claim against Tolkien estate backfires on LOTR fanfiction author
This aligns with what I was taught in my U.S. Intellectual property class a few years ago
jasinjames··on Desmos 3D graphing calculator
I recall using desmos to render solutions to constraints in my physics classes in college. My favorite was plugging in the equation for the normal modes of a driven, oscilating square sheet and watching the vibration pattern pop right onscreen.
jasinjames··on Compiler Development: Rust or OCaml?
I like that term "Complexity Budget" a lot. I'm going to steal that one!
jasinjames··on The force that shapes everything around us: Parking
>> he was saying that his house never used to flood and he was blaming it on an enormous parking lot that had been constructed and the displacement of water falling on that parking lot, and how that was contributing to the stormwater issue in his neighborhood.

The hardest day’s work I ever did was soil percolation testing as a summer CivE intern. Some municipalities have a rule for new development where any rain that is expected to fall on a property must be absorbed by the property, so a percolation test (“perc test”) gives you a number you can use to figure out how much of your landscape you need to keep undeveloped in order to absorb the needed rainfall.

In the municipality I was in, a test involved digging a cylinder hole roughly a foot in diameter and a few feet deep, then periodically dumping in a painters bucket of water. You’d then record how many inches of the dumped water was absorbed every ten minutes or so over the course of the next few hours. It’s not the most scientific test: the tests don’t normalize for recent rainfall, for one, but it’s part of the rules. For the property we were testing (summer camp), me and two other people dug twelve holes throughout the property and staggered our water pours so we could walk in a loop and continuously take measurements. The kicker was that there were only two water spouts on the property to fill the buckets, so the whole day consisted of lugging water buckets up and down hills in the mosquitos and humidity so we could finish the tests.

More broadly, though, an interesting consequence of water runoff rules is that it shapes how you design a home. Since too much house meant the remaining grass isn’t considered sufficient drainage, architects are disincentivized from having any roof overhang: since the covered roof area on small lots is constrained anyway, you make more money if you put house under all of it! This is also a reason you’ll see houses with gravel driveways: gravel driveways are good for water percolation.

>> When somebody decides they want to open a new restaurant or open a new building, instead of saying it needs X number of spaces, we could say, let’s look at the parking stock and find accommodations that are already there. Office parking could be used at night for residential parking. That dentist’s office parking lot could become the parking lot for a restaurant.

If I recall correctly, the town I was working in had some limited version of this. There could be sharing between businesses whose operating hours differed considerably, but these rules were piecemeal and didn’t help a whole lot in normal situations like when several similar businesses are nearby (i.e. restaurants). In the municipality I was working in, there was a table in the regulations mapping the business type (restaurant, medical, retail, etc.) to the number of parking spaces required per unit area (not per expected occupants). You actually need *more* parking per area for a bar than you do for a restaurant, because it’s standing room.

>>The first is that many jurisdictions in this country have parking requirements for new housing. That places a geometric and financial constraint on the types of things that can be built”

These requirements aren’t just things like “you need space for two cars for this house”, but also things like “the corner between the driveway and the street must be rounded by at least a radius R”, which when combined with all of the other geometric rules about the house footprint, setbacks (distance to the edge of property you can’t build in, which themselves sometimes vary depending on what edge of the property is on a street) etc, it becomes a bit of a jigsaw puzzle.

I don’t want to keep rambling too much but I think what I’m trying to communicate is that whenever you see a parking lot or building which looks like it made with some horrible, obvious design flaws, the engineer who designed it was fully aware of there being a better alternative. By the time you apply all the federal, state, and local rules, the number of knobs an engineer can actually tune for parking or building layout are surprisingly limited. Whether you think this is a good or bad thing is up to you.

jasinjames··on Modern C for C++ peeps (2019)
I haven't used C++ very much, but I found "A Tour of C++" to be a great introduction. It focuses on the core of C++ OOP semantics and is written by Bjarne Stroustrup himself. I like the book because it doesn't try to answer the question "which feature is the canonical way to solve problem X", since from what I understand, the "canonical" way to solve a problem in C++ changes quite frequently as new features are added. It was recommended to me by one of my professors a few years back for being short and accessible to a person who is looking to learn what makes C++ special, not how to program from scratch.

EDIT: Reading the page again, it looks like the book does have some discussion of C++17 and C++20 features, but I focused on the first few chapters which really nail down the whole copy and move semantics feature as well as operator overloading.

jasinjames··on 10 years of FTL: The making of an enduring spaceship simulator
Do you get FPS drops in asteroid encounters too? I played the game ten years ago on my old 2012 MBP and it ran great. Now running on my 2017 The game slows to a crawl in astroid fights. I'm not sure if it's an issue with the game version, my MacOS version, or something else entirely.
jasinjames··on Crystal Programming Language
Looks interesting! I'm always open to a statically type checked language.

This isn't about the language, but I was surprised to see that Nikola motors is a sponsor. Wasn't that company a fraudulent Hydrogen Fuel vehicle startup[1]? I wonder what the story is there- I find it hard to imagine anyone would be doing much software engineering at the company in the first place, even if it *were* working on the technologies they claimed to.

[1] https://www.youtube.com/watch?v=88fWUZhYb04

jasinjames··on The obsessive pleasures of mechanical-keyboard tinkerers
never considered it before! any good examples you can point me to?
jasinjames··on The obsessive pleasures of mechanical-keyboard tinkerers
My first computer was a Macboon Pro from 2012. I replaced it (well, the aluminum unibody, ship of theseus-style) with a 2017 Macbook Pro when I started college. Now I've got so much muscle memory with the Apple layout that at work I use a USB apple keyboard with my ubuntu workstation. My coworkers are almost all mechanical keyboard junkies, and they never let me hear the end of it.
jasinjames··on CreuSAT: Formally verified SAT solver written in Rust and verified with Creusot
Fascinating anecdote. Where can I read more about this?
jasinjames··on Continuous Unix commit history from 1970 until today
Kernighan's is my favorite. The keyboard layout could be different, but im imagining him rapping his fingers against the three adjacent keys as if the motion itself were a secret handshake.
jasinjames··on Chinese students at Cornell “taunt” Uyghur classmate
I just graduated from Cornell, and I'm not surprised. Some student posters around campus which read "Hong Kong stands with Ukraine" had the "Hong Kong" scribbled out by someone else. [1] I saw students point and laugh at a similar poster. On multiple occasions, I saw scraps left behind where posters criticizing Xi Jinping or the CCP had hung.

[1] https://i.postimg.cc/25LM9hZJ/7297-B1-DB-5-CB3-4019-BCF3-8-F...

jasinjames··on I'm a security engineer and I still almost got scammed
I'd love to read about this. Could you link an article?
jasinjames··on Overhauling Mario 64's code to reach 30 FPS and render 6x faster on N64 [video]
I really like the way you put that into words; the creator of the video clearly has a deep passion for his work.
jasinjames··on Ask HN: Why isn't there a Google competitor emerging?
I think this is a neat idea. Google has tried a lot of products and models, but "gamifying" (at least in this sense) search itself isn't one I can recall.
jasinjames··on If Google sucks then why is everyone still using it?
And as of now, they are listening to users very attentively. Just a few hours ago I suggested they clarify the defualt "Programming" filter since it only searches q&a sites (i.e Stack Overflow) and they have already changed the name to "Programming Help" to make it more clear.
jasinjames··on Moscow police officers stop people, request their phones to read their messages
You could call this the Address Unknown[1] approach. An excellent and quick (<30 minutes) read, but probably not an appropriate tactic to use against a random Russian citizen.

[1]https://en.m.wikipedia.org/wiki/Address_Unknown_(novel)

← PreviousPage 2 of 2