HNHacker News
TopNewBestAskShowJobs

tinglymintyfrsh

347 karma · joined August 15, 2022

submissionscomments
tinglymintyfrsh··on Faster virtual machines: Speeding up programming language execution
Trying to optimize parsing binary interpretation is a lost cause. The problem with pure virtual machines is they're basically meta-macrocode are mappable back to the ISA macrocode without the overhead.

JIT is the way out performance-wise while the boundaries of the VM are what provide portability and safety guarantees.

tinglymintyfrsh··on Ask HN: What happened to flatbuffers? Are they being used?
They're used a lot in video games and embedded systems. They're not something you see advertised.

grpc and Thrift are mostly backend service interconnects in lieu of RESTful.

Capnproto is also awesome.

tinglymintyfrsh··on “After 20 years coding I just realised, commit messages are pointless”
Small teams can't have any dead weight people or internal limitations.

My problem is often perfectionism gets in the way of shipping where I'll spend too much time on minutia. At work, coworkers are more liberal in tech debt accumulation because there's a drive to ship maximum impact that can be quantified.

tinglymintyfrsh··on “After 20 years coding I just realised, commit messages are pointless”
Yes, exactly. Throwing tech debt to the wind is going big bags shopping on a credit card. Someone will eventually have to pay the bill.

I saw a startup that was so tech debt-heavy that they couldn't move. They were stuck daily patching nasty code.

Engineers who don't care about code quality are like coworkers with messy desks that spill onto yours.

tinglymintyfrsh··on “After 20 years coding I just realised, commit messages are pointless”
I work in a large environment.

Commit messages are a summary of what's inside.

The description area is for the test plan to prove your code was tested and doesn't break things beyond automated lints and CI/CD testing.

tinglymintyfrsh··on Ruby 3.2’s YJIT is Production-Ready
I use Ruby and Chef at work (MAANG).

For side projects, I use Rails 7 to get things going and replace components selectively with native extensions and separate processes.

It's all about productivity, especially when small, because performance is rarely an issue.

tinglymintyfrsh··on Ruby 3.2’s YJIT is Production-Ready
rbs / steep, and sorbet.

Monkeypatching is evil.

Rubocop custom cops to reign-in what's allowed in CI/CD.

tinglymintyfrsh··on Ask HN: Has anyone worked at the US National Labs before?
Former neighbors had good things to say about Sandia. Albuquerque isn't so great though.
tinglymintyfrsh··on Intel Launches $699 Core I9-13900KS, the First 6 GHz CPU: Available Now
MHz wars all over again.

This marketing "optimization" usually leads to cycle inefficiency and excessively deep pipelines, causing expensive pipeline stalls should a branch not be predicted correctly.

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

tinglymintyfrsh··on Extreme 'rogue wave' in the North Pacific confirmed as most extreme on record
Inaccurate article.

https://www.newscientist.com/article/dn25965-7-rogue-wave-di...

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

tinglymintyfrsh··on The Yaml document from hell
Let's not forget: JSON is also valid YAML

YAML, OpenSSL, and ASN.1 are what happen when every feature in the world is added.

tinglymintyfrsh··on From Ruby to Node: Overhauling Shopify’s CLI for a better developer experience
It's possible to write CLI tools with support generic plugins in static languages: drop in {{name}}-{{extension}} executables in a private vendored plugins/bin directory. docker for 1, cargo for another.

At MAANGs, Rust is taking over and Go is waning. Go allows for quick productivity from 0 but it plateaus due to an unwillingness to add features. Rust has a Haskell/Nix/(fancy tool) problem but it has a good productivity curve that keeps going. Sometimes worse is better as UNIX people might recall.

tinglymintyfrsh··on Ask HN: Strategies for working with engineers that are too smart?
Code is firstly a social human language for machine behavior. It's not useful if others can't reason about it, maintain it, or it contains surprises.

Wise engineers don't add complexity or try to be too clever. Simple and small is elegant. Secure engineers don't have anything to prove and create maintainable code. OTOH, paycheck-driven engineers are incurious to try new things or promote software craftsmanship.

Lack of consistency can be enforced by code style linters. Let the linters be the Bad Guy(tm). Get agreement and buy-in on these beforehand.

Separate the people from the problems: give immediate, actionable, constructive feedback privately. Use frame taking to show how their actions come across and the concerns you have... for example, who supports this code when there's an P0?

Mentors are also needed. If possible, hire or advance an "old timer" in the space who can teach some new dogs new tricks.

Whitespace... I come from Ruby land where visual alignment, proper spacing, and terseness are valued. Too many comments and too much whitespace are a distraction, just like condensing too much. In general, very small functions, good semantic naming, DRY, and few levels of indentation make code more pleasurable to read than giant god functions with duplication or excessive line length. Code that runs together without functional visual separation doesn't make it clear what's prologue assertions and setup, main work, and epilogue return.

tinglymintyfrsh··on Grayscale on 1-bit LCDs (2022)
I recall graphics programming books in the mid/late 90's about dithering techniques.

There's also some fun related work on ASCII art rendering.

This sort of thing is/will still be useful for low-cost displays. I'm sure we'll have Wifi-enabled e-ink displays on cereal boxes soon.

tinglymintyfrsh··on Grayscale on 1-bit LCDs (2022)
PWM those 1 bits to get grayscale and add dithering.

I'm sure this is what the Palm Handspring did.

tinglymintyfrsh··on Congress says the Army can’t spend $400M buying Microsoft HoloLens headsets
Geeze, why don't they go for MagicLeap 2 Enterprise edition ($?) or Meta Quest Pro ($1500)?

Also, I think the sticker shock is there but it depends on the value it brings.

If it's well-justified to bring a major advantage, then it's acceptable. Otherwise it looks like MIC wasting $$$ on toys when there's unmet social and health needs that are desperately underfunded.

tinglymintyfrsh··on Keep CALM and CRDT on [pdf]
There's a need because WAL/OTs aren't the most approachable.

It's important to communicate and assure ACID and CAP properties. It'd be nice to have an "ORM" data layer that's say an extension of GraphQL that can specify what sort of guarantees the app wants.

tinglymintyfrsh··on Ask HN: At 45, I can't seem to read as well anymore
I'm 44, too sedentary, out-of-shape, and wasting time on video games lately. I'm ADHD-PI with timeblindness, tangents, procrast, and overfocus. I have monofixation syndrome (MFS) that I never knew I had until my new old-timer opth found incidentally.

Stress maybe? How's your Maslow's sleep, diet, exercise, and mood?

Also, consider that age comparing now with peak performance of say 15-20's is unfair. Give yourself a break.

Maybe a sabbatical is in order.

tinglymintyfrsh··on U.S. safety agency to consider ban on gas stoves amid health fears
Wha?

Chefs will be up in arms.

tinglymintyfrsh··on NYC officials say they can't find EV garbage trucks powerful enough to plow snow
If they run a fleet, they should be swapping battery packs not waiting around for batteries to charge.
tinglymintyfrsh··on NYC officials say they can't find EV garbage trucks powerful enough to plow snow
With that luxury, sure. Emergencies happen. The garbage needs to be picked up.

Total the costs of icy sidewalk slip and falls, lost economic activity, and excess deaths (QALY) over 10 years. Spend 1/4 of that on a series of underground passageways (un)like MIT.

tinglymintyfrsh··on The concept of class invariant in object-oriented programming
Also known as validations and business logic.

It's interesting that in web paradigm dynamic languages and low-level systems languages, defensive programming assertions of invariants are widely dismissed. Validation and sanitizing of external input is often lacking and the source of many security issues.

The problem domain is that most programming languages and application frameworks do a piss-poor job of separating and managing business logic around data storage and data mutation. MVC doesn't go nearly far enough. OTOH, there are fancy enterprisy business rule transaction systems that are divorced from most platforms.

I think the key here is standardizing formal business rules in a portable "EBNF"/"markup" manner to be language and framework agnostic while not being laborious as COBOL-like Cucumber testing.

tinglymintyfrsh··on The Signal App and the Danger of Privacy at All Costs
This article comes across as muddled, bullshit, editorial piece arguing against privacy and that we should trust corporations. They seem to be naive and not have much real life experience while pushing a position that's indefensible. They're a tech consultant and speaker, so that's the position they're pushing.

---

PS: Actually, I prefer the fork of Signal, Session, because it doesn't require the metadata binding to a phone number.

https://getsession.org

tinglymintyfrsh··on The Signal App and the Danger of Privacy at All Costs
"The" paper of "record".
tinglymintyfrsh··on 24-core CPU and I can’t move my mouse (2017)
Thermal throttling, dirty fans, poor process isolation and scheduling, and so forth.
tinglymintyfrsh··on Don't force users to register before they can buy (2015)
One of the dumbest anti-patterns. Even major shopping cart frameworks have this problem such as spree and activemerchant.

The one who gets this mostly right is Shopify. They're the "Stripe" of shopping carts.

tinglymintyfrsh··on Don't force users to register before they can buy (2015)
Anything in the way is a conversion fail and leaving money on the table.

And for heck's sake, automatically associate previous guest transactions with a new account when a user finally decides to take the plunge.

tinglymintyfrsh··on Tandem solar cell achieves 32.5 percent efficiency
Where does this fit in the chart and with what symbol(s)?

https://en.wikipedia.org/wiki/Solar-cell_efficiency

(The top is 47.1%)

tinglymintyfrsh··on American EVs reduced gasoline consumption by just 0.54% in 2021
Anything optional + opt-in doesn't get used.

Mandate EVs, and suddenly the industry will respond.

The status quo finances oppressive regimes, the Holocene extinction event, and climatic omnicide.

tinglymintyfrsh··on Elon Yes 57% No 43%
Easy way to step away from it after throwing a morale and org hand-grenade and let others pick up the pieces.
← PreviousPage 5 of 9Next →