Better HN
topnewbestaskshowjobs
Log inSign up

RandomThoughts3

1,515 karma · joined Jul 3, 2024 (2y ago) · 606 submissions

Submissions

comment 2y ago · link · parent

I think it’s a bit disingenuous to put it that way. The comment you are replying to is not asking for a widely different programming style. They want typing which is perfectly understandable.

It’s common that as project grows larger and more unwieldy, people ask for more warranty and help from their tooling. I think Python position on this strikes a good balance - provide the infrastructure for adding type hint but delegates type checking to a third party.

comment 2y ago · link · parent

I’m sorry, I’m not sure how the quote is relevant to the comment you are replying.

Mature languages don’t tend to break working code. That was true when the quote was pronounced and that’s still true today.

Python is fairly unique in its propensity to be an unstable target. I personally can only think of the JS ecosystem has being worse but even then that’s mostly a library thing as the VM will run even the oldest JS code you can find. I wish the same could be said of Python.

comment 2y ago · link · parent

Yes, because there is a lot of space there and the sun shines a lot. But they are not more efficient that installation outside of deserts which was the claim made by the comment I was replying to.

comment 2y ago · link · parent

> Sodium ion batteries

That’s prospective technology developed literally in order to overcome the limitation that is lithium availability… The battery you are talking about in China is both the first and very small capacity related to the grid.

I’m sorry but I think you clearly have an axe to grind and are not engaging with me with full intellectual honesty here.

comment 2y ago · link · parent

I was thinking more about the batteries part if people are aiming for grid scale storage.

comment 2y ago · link · parent

Solar panels don’t like sands. It flies everywhere and the deposit partially shades the pane. You have to clean them to get back to peak efficiency. That’s why solar panels farm in desert are so complicated to run and why you don’t see more of them.

comment 2y ago · link · parent

Rare earth elements production will be the limiting factor. China is already the first producer by far and has been scaling up but not fast enough.

I’m sceptical of PV being *the* solution to the world energy issue but who knows, maybe.

comment 2y ago · link · parent

libweb was started in 2019. Anyway, I’m really sour that 90% of the discussion on a thread about the incredible project that is Servo are wasted on Ladybird.

comment 2y ago · link · parent

It doesn’t look great for DEFCON in that the whole thing seems to have been widely mismanaged from the choice of their partner up to the timeline for what is in the end a bunch of badges. The rest is just a whole lot of finger pointing with very little in the way of actually verifiable facts.

comment 2y ago · link · parent

> In Java you'd say something like `this.getConfigBlah()`

No, the whole point is that it’s completely dissimilar to that.

> But does this have anything to do with monads or some monadic version of state?

There is no monadic version of state. The State monad is a way of chaining things together (not unlike shell pipes) which is nice in Haskell because it gives access to some of the language syntactic sugar (the do notation). There is nothing particularly special there otherwise.

The key takeaway here is that you can avoid littering your global scope by explicitly passing what’s shared as functions arguments and then remove side effects if you also pass by value.

Yes, it is this simple.

comment 2y ago · link · parent

> Is China or India any less represented at the UN because they have the same number of votes as Cuba and Micronesia

Yes, very much so. That’s part of why the UN is not taken very seriously and why the security council exists.

> The senate has plenty of representativity.

Debatable. It was certainly fit for purpose when it was set in place. Is it appropriate nowadays? Probably not, especially when you consider how it impacts the electoral college.

I tend to find the USA political system a bit dubious (I think the same of the one of my own country to be clear and I generally have a poor opinion of presidential systems anyway). Still, the country has been mostly stable until now so I guess it’s fit for purpose.

comment 2y ago · link · parent

Meta and Google with the GDPR. It started nicely with the equivalent of a slap on the wrist but Meta finally got hit with a 1.2 billions fine for towing the line on international data transfer mostly because it’s the fifth time they are fined and apparently they had yet to get the message.

comment 2y ago · link · parent

Dangerous play with the EU. They don’t take kindly to this usually. I’m expecting a massive fine coming for Apple.

comment 2y ago · link · parent

> will rule the world forever

If by forever, you mean until they actually disappear from something they have failed to foresee or couldn’t avoid, then, yes maybe.

Nothing is forever. Prolongating human life would probably barely make a dent in the grand scheme of things.

comment 2y ago · link · parent

Not at all.

A monad is just a type constructor and two functions respecting some rules.

It can be widely different from the State monad ranging from useful (Option) to completely weird (the naive list monad) to doing nothing (identity monad).

comment 2y ago · link · parent

It’s the same thing. Order doesn’t matter in the tuple. Just use a bind which is in line with the signature of the type you want to use.

comment 2y ago · link · parent

It's not about monads as an abstract concept. It's specifically about the State monad.

The key idea is that you can have something ressembling states with pure functions if you pass the a representation of the initial state as an argument and have the modified state be part of what the function return. You can then use this modified state as an argument for the next function call. The State monad is just an handy way to do this chaining.

But, yes, the actual state representation is in the way the argument is encoded, that's true.

Edit: I find it hilarious that I’m the one downvoted here while all the comments saying complete non sense about monads - including the ones clearly having no clue of what a monad actually is - are not. Never change HN.

comment 2y ago · link · parent

Point to consider: the moment you hire to develop in-house, you are a product company on top of what you were before. Doesn’t matter if you are the sole user of this product and actually not making money with it, you will have to deal with a company in the company.

It could be a very good idea (especially if you can spin it out at some point) - I mean Dassault Systemes started this way and they are a billions dollars company but that came from an engineering company a 100 times larger than your own and for which the investment was pocket change - but it’s going to cost you more than you think, take more time than you think and be more taxing on your time than you think. Also you need to maintain it forever.

If you haven’t done it yet, I would pay for a very serious benchmark of what’s available on the market and open discussion with integrators to see if a custom integration on top of something on the shelf couldn’t be made especially if you have people in house doing low-code thing before pulling the trigger.

comment 2y ago · link · parent

Sure but the explanation conveniently sidesteps the issue with the senate lack of actual representativity. Even a popular law could easily be blocked by a small minority in the rural states.

Anyway I’m not American. The quality or lack thereof of the US political system doesn’t really affect me. Would appreciate the US getting its act together when it comes to GHG emission however because we share the same planet.

comment 2y ago · link · parent

Sure but all these people are there to ensure the insurance will get ahead, not to help the customers.

One of my friend works in reinsurance and his favourite joke is that every time the insurance company pays a claim, someone is getting fired. Obviously a joke but it seems to paint a fairly accurate picture of how the business is run.

comment 2y ago · link · parent

I think you are conveniently ignoring how the Senate representation is now so widely disconnected from the demographic reality in your answer.

comment 2y ago · link · parent

The position is weird to this European.

A constitution is not a sacred text but a very practical one. The constitution of my country went trough five major rewrites and was amended approximately a dozen of times since the last rewrite and somehow we are still a liberal free country.

The idea that touching it in any way or form is a slippery slop leading to less rights is a fallacy.

comment 2y ago · link · parent

"a powerful psychological shock that has damaging effects" OED, unchanged since 1917

A trauma is not just a distressing experience. That’s silly. We wouldn’t even have needed a new word if that was the case.

Why weaken and therefore overall diminish the English language?

comment 2y ago · link · parent

Well, no, the usual definition of trauma involves being "outside the normal range of human experiences". Having cancer is extremely distressing but it is not trauma.

Anyway, yours and the other answer I got confirm what I though. The word definition has indeed been widely broadened in the US.

comment 2y ago · link · parent

The name is new but "ultra processed" - which is to say processed - has been with us for 50 years nowadays. Deleterious effects are known: obesity, diabetes and, yes, uptake in cancers.

Still, an unlikely candidate for a recent uptake in cancers amongst the young at least as a general category and not aiming at a specific new class of additives.

comment 2y ago · link · parent

I’m a bit disturbed by the way the article and most commenters here use the word trauma. Most of what’s discussed doesn’t seem to me to be "outside the normal range of human experiences".

Am I completely out of the loop about how the word is used in the US now?

1
161718
21