HNHacker News
TopNewBestAskShowJobs

manoDev

7,576 karma · joined January 28, 2012

submissionscomments
manoDev··on Experiment: Making TypeScript immutable-by-default
> That should make arr[1] possible but arr[1] = 9 impossible.

I believe you want `=`, `push`, etc. to return a new object rather than just disallow it. Then you can make it efficient by using functional data structures.

https://www.cs.cmu.edu/~rwh/students/okasaki.pdf

manoDev··on The Pragmatic Programmer: 20th Anniversary Edition (2023)
Yeah, we need both types.
manoDev··on Apple is crossing a Steve Jobs red line
To be fair, ads on a map aren't the same as Windows 11 start menu ads – the former are useful and contextual.

I feel the story being told would be more equivalent to what Microsoft is doing rather than Google.

That said, advertising is like a virus, and every company and product is eventually infected by it. It's too tempting to not monetize your customer's eyeballs once you have enough of them.

manoDev··on Solarpunk is happening in Africa
This article is a good example of how, sometimes, starting from scratch is a blessing, since you can adopt the best tech right away instead of fighting market inertia and monopolies trying to keep a status quo - as a counter example, see Japan being stuck w/ fax past the internet advent.
manoDev··on Solarpunk is happening in Africa
A grid in a remote place in Africa would have less 9's than self reliance on solar.
manoDev··on Solarpunk is happening in Africa
Sure, capitalism has been working great for Africa since the 1700! The poverty was caused by not enough capitalism.
manoDev··on Solarpunk is happening in Africa
Are you confused by the idea that socialism and market are incompatible ideas, or is this a critique that they're merely selling and not manufacturing (therefore not fully owning the means of production)?
manoDev··on Solarpunk is happening in Africa
If the value is staying with local workers (social ownership) instead of being captured by some multinational, that's closer to a textbook definition of socialism than capitalism. How's that double-speak?
manoDev··on Optimizing Datalog for the GPU
I guess SQL is a requirement if they want to market their technology to normies.
manoDev··on John Carmack on mutable variables
That's not mutation though.

The `assoc` on the second binding is returning a new object; you're just shadowing the previous binding name.

This is different than mutation, because if you were to introduce an intermediate binding here, or break this into two `let`s, you could be holding references to both objects {:a 1} and {:a 1 :b 2} at any time in a consistent way - including in a future/promise dereferenced later.

manoDev··on China has added forest the size of Texas since 1990
Not per capita.
manoDev··on Dead soldiers' teeth reveal diseases that doomed Napoleon's army
1. The soldier probably died young

2. Good dental health has always been part of the screening to join a professional army

manoDev··on Doomsday scoreboard
The emissions are only a problem initially; it doesn’t matter if enough population perish, the warming will continue by self-reinforcing effects for an era.
manoDev··on Tinnitus Neuromodulator
Stress -> jaw clenching -> tinnitus.
manoDev··on Andrej Karpathy – It will take a decade to work through the issues with agents
That’s a good definition: it’s a model of a model.

It seems the debate seems to center around whether language models are meta-models (in the category sense) or mere encodings (information theory)?

manoDev··on Tinnitus Neuromodulator
Yeah, caffeine is not the cause per se - the thing is it has both vasoconstriction and vasodilation effects at different times, so it can mess with blood vessels in the inner ear. It totally makes sense if you get tinnitus when you cut caffeine after your body is used to it.

Magnesium plays a part on vasodilation regulation as well, and many people are silently deficient on it. It’s hard to detect deficiency w/ blood samples, because the body works hard to keep blood concentration stable. You will know you do if you get muscle cramps or twitches.

manoDev··on Our Paint – A featureless but programmable painting program
Looks absolutely cool and insane at the same time:

https://youtu.be/TW-JlKTlYoI?si=FtHHR1iesDPJlTMD

manoDev··on Tinnitus Neuromodulator
I feel you. Here’s things you can try (in this order):

- Cut stimulant use (coffee, energy drinks) and alcohol

- Drink plenty of water

- Check blood pressure

- Talk to a dentist and check if you grind teeth or suffer from jaw stiffness

- Supplement Magnesium (chelated/glycinate, 300mg/day)

I’m ignoring issues of the ear canal (wax, secretions) since you mentioned it.

Studies point to tinnitus being either caused by changes in blood supply on the inner ear, of neurological origin or trauma. These are all measures I took and greatly improved my case (and when I neglect one of those, it comes back).

manoDev··on Event Sourcing, CQRS and Micro Services: Real FinTech Example
Nobody relies on atomic transactions to model money transfers in the real world. You can read up on "clearing" and "settlement" processes to get an idea.
manoDev··on Event Sourcing, CQRS and Micro Services: Real FinTech Example
No, that definitely happens.

There are two kinds of adjustments: an adjustment transaction (pontual), or re-interpreting what happened (systemic). The event sourcing pattern is useful on both situations.

Sometimes you need to replay events to have a correct report because your interpretation at the time was incorrect or it needs to change for whatever reason (external).

Auditing isn't about not changing anything, but being able to trace back and explain how you arrived at the result. You can have as many "versions" as you want of the final state, though.

manoDev··on Video game union workers rally against $55B private acquisition of EA
Salaried workers sell their time in advance with promises of promotions, bonuses or stock in the future.

So what (public) companies do is over hire during growth, then lay off later to transfer the value created by these workers to shareholders. Rinse, repeat.

manoDev··on The Mondrian introduction to functional optics
Category theorists seem to enjoy coming up with confusing nomenclature.
manoDev··on How does lossless compression in Fuji RAF files work? (2020)
It’s because manufacturers keep inventing their own formats instead of using plain DNG, and you can only figure out the difference reverse engineering the file. Even for the same manufacturer and file type, they may change encoding details between models or firmware revisions.

There are situations where they may decrease the bit depth of the final image if there’s not enough dynamic range, there are situations where even though the file is “uncompressed” the camera already does noise reduction and essentially compresses detail in the image, and so on…

manoDev··on Write the damn code
I use AI as a pairing buddy who can lookup APIs and algorithms very quickly, or as a very smart text editor that understands refactoring, DRY, etc. but I still decide the architecture and write the tests. Works well for me.

Apparently what the article talks against is using it like software factory - give it a prompt of what you want and when it gets it wrong, iterate on the prompt.

I understand why this can be a waste of time: if programming is a specification problem [1], just shifting from programming language to natural language doesn’t solve it.

1. https://pages.cs.wisc.edu/~remzi/Naur.pdf

manoDev··on iPhone 1 (2G) vs. iPhone 17 Pro Max: Look at 18 Years of Progress
The model mentioned in the article (17 Pro Max) is mentioned having $ 1199 launch price.
manoDev··on Buffett indicator says stock market overvalued
Isn’t this a matter of the dollar losing value, and the market is already pricing you’ll need more dollars to buy the same assets?
manoDev··on iPhone 1 (2G) vs. iPhone 17 Pro Max: Look at 18 Years of Progress
Inflation adjusted, the iPhone 17 price would be equivalent to $799 — almost double the $499 price of the iPhone 1 at launch.
manoDev··on The Theatre of Pull Requests and Code Review
Code review is a good way to ensure 1) the team has context 2) double-check the approach taken 3) keep conceptual integrity high. For that, you should make atomic PRs (not focus on minimal LoC, but rather a coherent patch set for a feature/bugfix), agree with your team that reviewing code is work and set appropriate time aside for it.

Also, code review should be ego free: 1) criticize the code, not the author 2) don’t be too attached to code written, the objective is the product and not number of LoC contributed 3) it’s okay to start from scratch after learning about a better approach, or even make more than one and compare approaches.

Where most teams fail is treating it as a gatekeeping process rather than context sharing, make PRs too small to be meaningful or only waste time arguing about code style and other minutiae.

manoDev··on That Secret Service SIM farm story is bogus
Alright, here's another example: try speaking up against Israel policies.
manoDev··on How to be a leader when the vibes are off
TL;DR "yes men" middle managers keep their jobs.
← PreviousPage 7 of 9Next →