Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 5y ago · link · parent

People say that "well if allocations fail all bets are off" but can't you pre-allocate memory for error handling?

Like sit down, figure out all the things you'll want to do on an allocation failure, and once you have determined that you slice a little chunk of memory when you start your app (and maybe _that_ fails and you can't do anything). and when you hit a failure you do your think, then tear stuff down.

comment 5y ago · link · parent

Perhaps society as a whole should just try to solve these problems.

This is the tarpit of market-based solutions: debating endlessly about who bears costs, instead of just doing collective things collectively. And if you do have markets, every middleman and their dog will demand their slice of the pie.

comment 5y ago · link · parent

I had one non-“salary” event one year. I spent so long staring at the instructions during filing, failing to get any of the software to work for my case, and at the end of all of it I ended up overpaying a significant amount.

I later (2 years) found out about some tax exemption I qualified for and applied for it. They sent me a refund after I filed an amended return. I miswrote my zip code. The check got sent and returned. No phone call to me or attempt to contact me to my knowledge.

Only after 8 months of waiting did I reach out. Person was real nice and resolved it all real quickly (for which I’m grateful), but still a bit annoying that this was a thing.

Meanwhile in many other countries you have 1 (one) form to fill out if you have to. None of the billions of tax exemptions you have to file for correctly (mainly cuz you don’t have to give tax credits when your social programs are semi-universal) or other headaches.

The filing is annoying and can be error prone. The underlying system is something right out of Brazil (the movie). The sort of bureaucracy that Americans like to imagine infect every socialist nation is totally present in the tax system of the US

comment 5y ago · link · parent

This looks really helpful! I have been working on FPGA stuff and have never really been able to figure out how to tie the knot with Verilator, even though I knew this was theoretically possible.

comment 5y ago · link · parent

not groundbreaking, but still useful and lets packages just assume that this stuff is available (well not just yet, but soon).

Useful stuff for lib maintainers.

comment 5y ago · link · parent

Hex-encoding works off of bytes… like if a character has a different byte representation between two encodings you need to specify in both directions

Even the Python 2 strategy for hex might lead to your text getting garbled if you’re using anything not représentable in ASCII (roughly).

comment 5y ago · link · parent

`.decode` doesn't work on strings because you decode bytes! PYthon has UTF strings!

I agree about the annoyance of the codec modules, and stuff like the urllib reorg happening on 3.0 instead of shifting it to later releases (and self-owns like the u prefix). But if you're calling `decode` on a string you have a bug in hiding, from the moment that your "code that handles encodings transparently" blows up when someone gives you a file that isn't UTF-encoded.

signed: someone who did the 2 -> 3 transition for a project that deals with a lot of non-UTF-stuff.

comment 5y ago · link · parent

Hyperfocusing on pattern matching and walrus operators when there are many extremely good improvements happening in Python fixing _real issues people have in production_ (stuff like packing in python timezones, improvements to pip's resolvers to make package resolution more correct, defaulting locale to UTF8) is very annoying.

Like the syntax is... divisive. And there's stuff like Black not being able to work with 3.10 for a while cuz it needs to rewrite its parser. But Python 2 -> 3 was a mess, and the python maintainers learned their lesson by making changes that would improve existing code without having to do full rewrites.

Like if you scroll through the changelog of recent releases you'll find loads of QoL improvements and things that are actually making the language more portable and easier to use in production. The CPython team does listen to needs of people (at least when it goes beyond aesthetics concerns...)

comment 5y ago · link · parent

I've seen a couple projects around this, are any of them also tackling the docker-compose-based workflows as well? Or will that stuff work transparently with these replacements as well?

comment 5y ago · link · parent

But I mean… Ireland has a higher English proficiency?

There are of course a lot of things doable fully in English. But when running a company not mastering the native language (even when all of the people you talk to speak English!) can be a big drawback.

comment 5y ago · link · parent

"You're cutting productive and unproductive hours at the same time" is perhaps true, but it's about the ratio. Obviously at the extremes (cutting the last day of work vs going from a 7-day to a 6-day) there's going to be differences.

Acting like unproductive hours are some random result goes against loads of companies who have been doing actual trials of 5 => 4 day weeks. Having time off is actually helpful, and the sort of procrastination from dissatisfaction/exhaustion/whatever that leads to this can be helped by this kind of stuff!

"Why is it 4 and not 3 or 2 or whatever" I mean it probably depends on people but TGIF is a saying for a reason

comment 5y ago · link · parent

Serious question: Let's say I'm using Django or Rails, and I just want to write the code with the ORM. What database am I using that you think makes sense?

I would see an argument that Notion's structure should have made this problem more important for them to resolve earlier in the process (like some document-based DB), but Postgres works well!

comment 5y ago · link · parent

The chips would have been sold in any case!

They're taking advantage of some fluxuations to make money for themselves. That isn't helpful for the producer nor for the purchaser of the goods.

This isn't people setting up futures for 555 timers. This is people scooping up PS5s and immediately selling them for an extra $200.

Of course it's nobody's god-given right to own a PS5 but there's not value being produced here.

comment 5y ago · link · parent

What innovations are we losing from unique pricing?

I think it's abundantly clear that Amazon is using its size to make shipping be basically free. It's just about scale, it's not about offering particularly better service. It's the price of books. Of shipping!

If the internet will be destroyed by asking people to pay for shipping, it's honestly not that great.

I always feel a bit weird about these kind of piecemeal efforts, rather than a larger coherent movement with more well-defined goals around having values beyond shareholder value and.... cheapness. But Amazon charging 1 cent for shipping of books is blatlantly disregarding the spirit, intent, and I believe letter of the law on fixed pricing for books in France.

comment 5y ago · link · parent

Well specifically to the brightness, how much light is going into your eyes when using a VR set relative to, say, a TV? Or a 27-inch monitor close to your face?

comment 5y ago · link · parent

I mean it's _the_ Standard Oil. They used their massive market domination and control of every step of the process to just destroy competitors.

I mean yeah they succeeded because it turns out that for a commodity just having one large network for everything is more efficient (and if you own everything, no middlemen!). But that's just an argument for nationalising commodities.

All that Standard Oil profit year after year came from somebody.

comment 5y ago · link · parent

There are still shoe repair shops, you know. Like just bring the stuff in and you can actually get a lot of stuff fixed (just like it's possible to patch a shirt, even a badly made one).

One can whine about the costs relative to buying a new pair, but that's your decision.

comment 5y ago · link · parent

What? YouTube has both of these features? Are you just using it without logging in?

comment 5y ago · link · parent

Yeah I mean it's not zero, but there's a lot of capital going into a thing that's not employing _that many people_, even beyond the value judgements around that.

Granted, maybe "real estate" here also means construction (which has its issues but I mean, people are building stuff). But I'm imagining more the "let me invest in buildings and make money off of it"-style industries.

comment 5y ago · link · parent

Gotta wonder how "real estate" qualifies as a job creating field. Sounds like BS to me

comment 5y ago · link · parent

> I really dislike the insidious idea that Turing’s horrible punishment at the hands of the state was wrong because he was a unique genius and war hero. No, it was wrong because he was a human being and being gay should not be a crime!

100% agree, an unfortunate mentality all too present in society, where we tend to build narratives of feeling bad for people because are exceptional, and not because they are people

See the classic kids story of “oh the store tried to kick the hobo out but actually he was a millionaire!!!” How about treating all people like human beings even if they aren’t like… valuable to you

comment 5y ago · link · parent

After watching the Imitation Game, I did some googling/trying to find out how the Bombe worked. I expected it to not be very exact, but I also kinda felt like the entire narrative around that history in the industry was just super off!

- The core mechanisms of the machine for running the Enigma "quickly" was from the Polish - The machine wasn't even a generalized computer!

I just felt really misled! Perhaps the biggest thing is Turing probably ended up doing good amounts of contributions to the academic/theoretical side and the practical side, but it feels like we are missing opportunities to describe the confluence of so many people's ideas in this period of history to end up at the current "machines that read instructions and then act upon them in a generalized fashion, very quickly".

This article seems to be that, and it's super intersting

comment 5y ago · link · parent

So `perf` is super slow on Ubuntu as well?

I feel for distro maintainers, real thankless job trying to square the circle on a billion different things like this.

comment 5y ago · link · parent

I just understand that people who run companies aren't looking to have a 0% profit margin.

comment 5y ago · link · parent

In the US:

>As of 2021, only estates valued at $11.70 million or more are subject to federal estate tax.

No sympathy for people who think that sort of windfall from their parents should somehow be untouchable.

comment 5y ago · link · parent

Sorry, I totally agree that it's not about explaining stuff.

I do acknowledge the massive PR campaign on this front making things confusing for people. I have my doubts about it being effective in itself. There feels like a baseline assumption (stuff like "well it's my stuff" or "taxes are annoying") that end up getting re-inforced through those campaigns.

Maybe the real solution is nuking every op-ed page of the face of the planet.

comment 5y ago · link · parent

What about reducing your profit margins? Why is it "pass it to the consumer" all the time? What about slowing down salary increases for people _not_ making minimum wage? "Costs get passed to consumer" seems to happen way more than "savings get passed to consumer" in the discourse.

When you have someone at HQ making 5 times what your lowest-earning person makes, you could let go of that person, increase wages for 25 people by 20%, and probably improve a hell of a lot of stuff. And that's cost-neutral!

comment 5y ago · link · parent

Nobody understands estate taxes, it's so frustrating. I have had conversations with coworkers who believe that the gov't will ruin you through estate taxes. People don't seem to understand things like (depending on locality):

- If you don't have literally $1M in assets you get taxed zero

- If you live in the home it is exempted

- There can be major deductions

The idea that the state comes in and destroys your way of life through estate taxes is an amazing failure of describing how a thing works (right up there with how progressive income taxes work).

I mean the fact that everyone's assets are tied up in things like houses doesn't help things, but... yeah.

comment 5y ago · link · parent

How is saying Trump won the election an act of political dissent? Trump was president!

The overton window has shifted so far on this site that saying "I don't like this person" is grounds for starting a whole debate about cancellation! Y'all are absolutely out of control

People are allowed to not like other people. Sorry if people you like aren't liked by other people

1
899091
225