HNHacker News
TopNewBestAskShowJobs

arithma

342 karma · joined March 6, 2012

submissionscomments
arithma··on U.S. Designates China as Currency Manipulator
I don’t understand this argument. Can’t the Chinese buy a LOT of influence, real estate, and US properties with all the dollars? Why is printing money “free”? How is this not either hyperinflation on one end or just regular currency value on the other. On one end it hurts the issuing country, on the other it’s mutually beneficial. How does printed-paper for goods fit into that spectrum.

I truly can’t wrap my head around this argument: been on the back of my head since I heard I think Peter Thiel say it (iirc.)

arithma··on When Worse Is Better (2011)
As long as Bob doesn’t observe himself and tries to improve his performance.
arithma··on C++20 Is Feature Complete; Here’s What Changes Are Coming
A good self-rating strategy in an interview would be to try and percentile yourself among the people based on your knowledge and try to justify it with humility. C++ is huge, I expect I know more than 80% of the people due to (years of experience, different kinds of projects, yada yada), but I feel i have only been able to explore like 50% of the language so far (concretely learn that is) and there’s more to learn like (1, 2, 3..) and probably more that I might have missed completely.
arithma··on Programming as a medium for poorly understood, sloppily-formulated ideas (1967) [pdf]
Not disagreeing, but just to add on the other side of the coin: language can be a driver for thought and ideas. This might feel wishywashy without an example, but I usually feel that I need to reinterpret algebraic manipulation that I have done to understand what significance they have.

So in a way, I allowed myself to be a mechanical executer through the rules of algebra/calculus I've used, and then I re-engaged my intuition to understand what is happening.

It might even be my unwillingness to accept the mechanical approach purely that poses a big hindrance to fast tracking a lot of learning in this domain I have to do. Maybe I should just shut up and calculate as they say, but it's hard.

This just makes it all the more true that learning "languages" is the best way to become smarter. "Smarter" is a weird personal word here, but I'm at a loss for a better way to put it. What am going for is: languages can be an abstract lever that allows our limited cognitive potential to build culturally, which is distinct and will definitely interact with the knowledge ladder, but in a distinct way. "Languages" here are more general than just the textual/oral/syntactic, and am not talking about Russian/Arabic/French either.

arithma··on Rsync, GUIs, power, control, design, and decisions
App becomes a local backend server that has privileged access to the machine (with control over what it accesses, maybe give it a specific user), and a web UI to access the app.

Someone in the tree of replies for your parent explained and was contemplating actually going through with it.

arithma··on The AMD 3rd Gen Ryzen Deep Dive Review: 3700X and 3900X Raising the Bar
Terribly tangential, but is there a possibility at all that the higher core counts will converge with GPU core counts in the future, in a large CPU, many smaller medium cores, and hundreds/thousands of micro cores.

Programming those would require a new paradigm possibly.

arithma··on Microsoft developer reveals Linux is now more used on Azure than Windows Server
I think it's saying that "software politics" and productivity are not one in the same.
arithma··on GNU Linear Programming Kit
For a course at uni (am not a practitioner in this domain in any measurement) we used cvxpy (and there was cvxopt for the matlab inclined).

Are those within the ballpark of what you need to do?

--

Am adding this response as both:

-1 Hey maybe you didn't know about this

-2 A question: Is CVXpy even in the same domain as those other tools listed here in the replies

arithma··on C++ Patterns: The Badge
If it is, it's the first time I hear about it. It always gives me a kick when I make up a similar design pattern to some grey beard's invention. Alas, I should read up on those patterns to avoid reinventing stuff and sharing things with people with appropriate names.
arithma··on C++ Patterns: The Badge
A different pattern I have thought of would be to provide an accessor interface object, and certain functionality is limited to be accessible only through that object. Controlling who has access to that interface can be flexible (possibly returning it along with construction, or passing it in at creation time...) Albeit, this is not without overhead, and for that, Badge is actually better, in terms of performance, if it fits the use case. What happens when you have multiple Device objects though, in this case, they can all access VFS..

--

C++'s private inheritance can be used here to avoid some of the gymnastics, wherein, that private aspect of the class can be passed out into the appropriate party at creation time or otherwise.

To illustrate: https://gist.github.com/arithma/0d96aec5c07e2d8dc24cfc6cd31f...

Note: I have never used this in production as far as I remember.

arithma··on AWS costs every programmer should know
A bit OT, but I wait for the day where bandwidth isn't a limiting factor and we can host machines doing computations anywhere, instead of having to rent out economies of scale. With Kubernetes and other private-cloud-like solutions, wouldn't it eventually be meaningless to depend on centralized cloud clusters and instead host your own and tap into an equal-footing infrastructure. Projects like vast.ai (no affiliation) are examples of the ideal I hope for.
arithma··on SwiftUI
Take most of the Adobe creative suite as an example. Different paradigms will fit different aspects of the UI design. Nobody wants to expend the same effort to build CRUDs as they would when they're working on "groundbreaking" stuff. Reality is a bit more nuanced: you want to abstract as much as possible and make it trivial, so that you can focus most energy where it matters. Patterns/Language/Frameworks all come into play here, and SwiftUI is a beautiful addition.
arithma··on The XY Problem (2014)
Maybe calling it "ButWhy?Problem" would help
arithma··on Birthday Paradox Revisited
I believe statistician ecologists use the reverse in an interesting way. Tag 100 units from a species, say goats (failure of imagination on my part) from a certain location. Then sample 100 other animals at a different time, controlling for time spent and so on, and the ratio of tagged animals that come up in the result will give statistical information about the total population of said species.
arithma··on Static web – back to the roots?
I've recently purchased a license for Bootstrapstudio for $60 and I want to send a vote of confidence. Does exactly what you're describing. I wish they had a bit more integration for templates for webapps but you can only do so much at the end of the day.

There are similar other offerings (one that comes to mind is reactstudio, but has a bit more going on there with code and flow.

arithma··on A 500M-year survey of Earth's climate reveals dire warning for humanity
"A preliminary global temperature curve shows that marine life diversified in extreme heat (1) before land-based plants absorbed carbon dioxide (CO2) and polar ice caps formed (2). Volcanoes and erosion swung CO2 levels up and down (3), but mammals evolved in a warm period (4). Now, humans are rapidly warming the climate again (5)."

The chart explains that the human activity effect is at the magnitude of cataclysmic volcanoes, and other global geological/ecological effects. I sure vote that we don't accept the status quo that this stuff happens over millions of years already. We should care, since this time, we actually exist. Nevertheless, I understand how this makes the conversation harder, which is unfortunate but expected in any nuanced discussion. I, by no means, am an expert and I had a similar reaction in the beginning.

To put things in perspective, our current effect in some hundred years, used to take thousands, if not 10s/100s of thousands of years.

arithma··on Why isn't 1 a prime number?
I am not a mathematician.

I reached solace regarding this itchy issue (not even joking) by considering the following: Primes are the minimal set of numbers to generate another set of numbers, using multiplication (with repetition, yada yada) For the positive numbers, [2, 3, 5, 7, ...] is all we need, considering that, as many others have said, 1 = Product([]).

In that sense, to generate all integers, the integers you need are: [-1, 0, 2, 3, 5, 7..]

Similarly, to generate all gaussian integers (complex numbers with integer components,) you can follow the following link: https://en.wikipedia.org/wiki/Gaussian_integer#Gaussian_prim... however, am not sure why 0 is not considered a prime number in this context.

Gaussian primes are symmetric over the real and imaginary axes, and to me it's quite curious why 0 is not considered prime there, but I guess uniqueness of the multiplication matters too (0 can be repeated multiple times, which could make some theorems about uniqueness of factorization a bit cumbersome as well.)

arithma··on Much of the “science” used in design is bullshit (2014)
I would definitely call that engineering though.
arithma··on The Dutch East India Co was richer than Apple, Google, Facebook combined (2017)
One aspect to it is that today a smartphone costs a few hundred dollars. Back in the day, no amount of money would allow you to buy one. Maybe to compare East India to current top companies, you'd need to compare the percentage of global GDP to estimate how big they are (and how large they'd most likely be if they continued to exist.)

The base/average salary comparison also makes a lot of sense.

arithma··on Scientists Watch as Heat Moves at the Speed of Sound
Not a "Real Physicist" but the information is not being lost, it's only being kept static-ish. This is the same as that waves don't violate the 2nd law (it's telling that they being called the phenomenon second sound.)

> The second law of thermodynamics states that the total entropy of an isolated system can never decrease over time.

So instead of entropy increasing, it's hanging around for a while. No violation, still unusual though.

arithma··on Ask HN: Which 5 investments of £1k each should I make?
If I am in a similar situation, but in a third-world country, with a few $K to spare, does anyone have any advice on how to put some money for the future?
arithma··on B612 is a highly legible open source font to be used on aircraft cockpit screens
Looks like there's a variant for digits only (no slash) and a variant for mixing in with regular alphabet where it gets a slash. Am not sure what to make of it, but great observation!
arithma··on Minimalism: Practical Guide to Writing Less Code (2002) [pdf]
The best light I saw this recommendation is: apart from guard statements at the top of a function which have return's, the advice should hold
arithma··on As Bitcoin Sinks, Industry Startups Are Forced to Cut Back
Bitcoin seems to be getting real hurt from the lack of hype and bans from big adtech companies (along with all the cryptocurrency stuff as well.)

https://trends.google.com/trends/explore?q=bitcoin&geo=US

arithma··on Ranges, Code Quality, and the future of C++
This does not go unnoticed, but with so many interested people who are actually contributing, it is hard to avoid the clutter. Bjarne Stroustrup (C++ creator) on this: http://www.stroustrup.com/P0977-remember-the-vasa.pdf
arithma··on Can Analogies Reveal the Laws of Physics?
This might be most interesting to tackle emergent behavior theories like turbulence, where the fundamentals are known, but how they line up to cause an effect is still a mystery.
arithma··on Stop using JWT for sessions (2016)
Are there any engineering books that have a collection of best practices for internet engineering problems similar to this one? I find that most of this information is learned colloquially, or through what other frameworks do.
arithma··on Ask HN: Application idea for C++
If you included the level of expertise you already have, I believe more people will be able to help with suggestions. Maybe check out some of the open source projects that need contributors?
arithma··on Black holes ruled out as universe’s missing dark matter
If it was finite, does it mean it was definitely not flat?
arithma··on What Made Gödel’s Incompleteness Theorem Hard to Prove
It's not an analogy. I thought so too at first, but the connection is material: In the blog it shows a proof of Godel's theorems using the Halting Problem.
← PreviousPage 2 of 6Next →