Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 3y ago · link · parent

Good points, I do admit I don’t know how this could work in practice. My conflictual feelings is just on how serious and real the danger is of people driving in a certain state, balanced against all the negatives mentioned.

comment 3y ago · link · parent

My reading of this article is that “kill switch” here seems to be “car determines that you are driving like a drunk person, so shuts down” rather than “some service remotely sends a kill command for reason X to your car”.

In the hypothesis that it’s actually kind of easy to figure out if somebody is impaired, I’m pretty conflicted because the upside of not having an impaired person driving is really high. Just I don’t know how possible it is, nor how reliably that would work. On top of that it seems like one step between that and “and the car reports you”.

comment 3y ago · link · parent

Yeah there's definitely a deeper argument there, but I think it still falls into a similar category of ignoring context in many cases.

The "can't" variants often imply that it would cross the Rubicon on some issue. My contention is that usually, the supposed Rubibon has already been crossed ages (often centuries!) ago.

Of course "crossing the Rubicon" itself is a social construct, so at least those arguments can warp reality enough to become self-fulfilling. If everyone is convinced that something is impossible, it becomes very hard to argue that doing it is reasonable.

EDIT: and to be clear, I am not looking to litigate the illegal number issue. I've heard the arguments, this isn't a question of ignorance. It's a question of having different base axioms. I reserve my right to be extremely wrong on this issue to prove a point in an internet discussion

comment 3y ago · link · parent

This is a super common argument strategy "on the internet" (but also at work with people who are too annoying for their own good, including myself). Just stripping away context until suddenly the thing you're saying is fine. People throwing out metaphors and similes as if shuffling around numbers on a hard drive and throwing pieces of metal and paper into a jar are the same thing.

And nobody is really immune to this line of thinking! There are people who scoff at "mixing cash into the jar is not illegal" but will state that "math can't be made illegal" or "you can't copyright numbers". I'm definitely not immune to it.

comment 3y ago · link · parent

I think it's tricky, because if Typescript _didn't_ show up with tsc, then they would have had their fate bound to Webpack or something like that. And of course tsc and the language server go hand in hand. It's hard to understate the positive effects of tsc existing across the entire ecosystem!

I suppose in a way I'm complaining about a (mostly) non-issue, since bundlers all have good typescript support at this point.

comment 3y ago · link · parent

Honestly I think the blame[0] is to share across the board. I have read through a bunch of typescript lang issues on this topic, and the general issue is that Typescript doesn't want tsc to do certain kinds of rewrites during compilation (code transpilations that go beyond the most simple things).

This makes sense but honestly means a lot of QoL fixes are kinda impossible to do. At this point I, personally, would almost want tsc (the compiler component) to stop being almost a good bundler and remove some features. Every project I've worked on that uses tsc directly ends up needing a "come to Jesus" moment where a "real" bundler gets introduced and suddenly a lot of stuff becomes easier. Doubly frustrating for me to feel this because tsc does a lot of stuff and it is hard to imagine how Typescript the language moves forward without Typescipt the compiler. I just really don't want to type `.js` for files that are, pre-build, `.ts`.

[0]: "blame" here meant in the weakest sense of "there are people who could make decisions in another way to make this better". Not so much in assigning moral blame

comment 3y ago · link · parent

"every day, from 9AM to 5PM EST" is a thing that can be represented through calendar RRULEs. Usually libraries exist to help with this (Python has one, conveniently called rrule!). This is a thing to describe recurring events, has a spec and everything. So there is a thing.

And you're totally right about `time` existing, it slipped my mind that time has a tzinfo slot. I do think you should still take care and I would avoid having any naive time objects just floating around beyond the serialization layer though.

comment 3y ago · link · parent

But you would need to convince the rest of the board with _something_, right? Like to not only fire this guy, but to do it very publicly, quickly, with the declaration of lying in the announcement.

There are 3 other people on the board, right? Maybe they're all buddies of some big masterminding, but I dunno..

comment 3y ago · link · parent

The "lying" line in the original announcement feels like where the good gossip is. The general idea of "Altman was signing a bunch of business deals without board approval, was told to stop by the board, he said he would, then proceeded to not stop and continue the behavior"... that feels like the juicy bit (if that is in fact what was happening, I know nothing).

This is all court intrigue of course, but why else are we in the comments section of an article talking about the internals of this thing? We love the drama, don't we.

comment 3y ago · link · parent

Yeah here they’re talking about a JSON API and then just “serving HTML” (which is its own API).

I really think it’s so valuable to take what you use internally seriously, exposing and documenting it to end users is a great way to avoid hackiness, and just leads to more regular designs IMO. More work of course but … not that much in the vast majority of cases

comment 3y ago · link · parent

Yeah I'm talking mainly about React + Typescript as a combo. With more gnarly Django templates sometimes it's hard to even know what we are looking at in a template, whereas inside a React component I'm going to be a "jump to definition" away, not just for components (or template tags in the case of Django, I know PyCharm offers good jump to def there, including for stuff like Angluar!), but for variables and the like as well.

I think django-components only has part of the story there, because even if that helps writing out your page, you're still looking at going to the other side of the frontend/backend wall to add, at the very least, an endpoint using that template. And if you're following this whole "hypertext API and data API as separate things", you'll need to also code handling of submitting any data, and routing involved.

I'm not against this stuff entirely, because I think there's a bit of a Go-like niceness to how it's "at worst" boilerplate (that you can abstract over on a per-project basis). But if you have a comfortable, well designed API all that work spread over you templates and controllers might actually all just be in one place.

comment 3y ago · link · parent

The core thing is a lot of nice UX patterns are harder with server side rendering. Multi-page forms? Now you’re juggling around state. “Form has N rows”? Now that’s a thing. “Form has N heterogenous rows” is another thing.

Then you get into things like how no server side rendering strategy has the equivalent to React “just write an inline helper function for this page”, so you need to create partials in files all over. And what if you’d like to statically verify that your templates have all the content in place? Proper typing? Who hasn’t had a page fall over because there was some missing context variable 3 layers deep.

The thing with the API based flow and client side rendering (with React at least) when you have it set up nicely is “add a list view with pagination and search with a modal to create a resource if needed, and some inline editing” can be done by opening a single file and getting there with 2 dozen lines. Server side rendering strategies in practice tend to buckle a bit if you try to be modular enough, and in many cases you need to open one file per checklist on your project. Code locality issues are real IMO

Disclaimer: I’ve done both, messing around with HTMX on a project and think it’s pretty cool. But it’s mainly because I don’t have all of the nice patterns from work projects that I’m tying this. If startup costs weren’t a thing I’d go with a client side system most days of the week.

comment 3y ago · link · parent

I get this on one level but wow can you tell the difference between when a team uses the API they offer users and when they don’t, and the “single API” approach gets you there so well.

I have basically never seen a nice user-facing API when it’s been split out. Sometimes that’s fine, but at least for enterprise use cases having a “real” API just feels like table stakes in so many domains for getting bigger clients onboard.

comment 3y ago · link · parent

It’s pretty disappointing to see this article make claims like “web developers just use naive datetimes”.

I think anyone who does anything nontrivial with datetimes should always use non-naive datetimes (unless you have a really really really good reason to)

Even when I started doing Python web dev 10 years ago this knowledge was bestowed upon me and has saved me many headaches (and helped me find bugs in third party code). The fact this article claims otherwise makes me doubtful of other advice given.

Unfortunately, Pythons date/datetime APIs make it way too easy to do the wrong thing on this topic.

comment 3y ago · link · parent

Something like “9AM-5PM EST” can’t be stored in a datetime object even with a timezone slot! Datetimes with a timezone represent specific points in time, not vague “5PM” like concepts.

comment 3y ago · link · parent

“Do a hugely public firing because a feature wasn’t launched” would probably be a first

comment 3y ago · link · parent

Can an LES array nicely reproduce similar color spectrums? If I had to guess I imagine the film lamps emit a pretty broad range of color.

comment 3y ago · link · parent

> The French nuclear case illustrates the perils of the assumption of robust learning effects resulting in lowered costs over time in the scale-up of large-scale, complex new energy supply technologies. The uncertainties in anticipated learning effects of new technologies might be much larger that often assumed, including also cases of “negative learning” in which specific costs increase rather than decrease with accumulated experience.

Oof, talk about a nasty abstract. Will need to find a way to look at this paper later.

comment 3y ago · link · parent

according to the wiki numbers, wind + solar make up 17% (with hydro being another 17%). Nothing to sneeze at! Though coal is extremely present.

comment 3y ago · link · parent

It's definitely versatile but it does need access to a lot of water, and a lot of trained staff to run it. PV and wind also have staff constraints, of course, but plenty of smaller scale PV setups are fairly hands-off.

comment 3y ago · link · parent

France, France, France, France, France. I need nuclear proponents to read about France.

A nation made a bet on "let's do all nuclear". It basically worked, but there was no magical cost decrease. They have an immense amount of institutional knowledge, huge educational system, massive amounts of resources. Their nukes are big and expensive and not really on time. There is no magic at the end of the tunnel if Greenpeace disappears.

The world isn't Sim City, power plants need water access and have location concerns, and it's not a question of just dropping a bunch of truck-sized plants across the world and magically solving everything.

Having said that, France is a success story of course. It's cool that it's all set up. But even after building it up, running these plants are expensive, there's often load issues meaning they are not fully utilized... "nuclear is free easy energy" is science fiction. That's fine, though! It's normal that we have to do stuff to power society.

EDIT: to be clear, I'm cool with nuclear, but I am not picky about where my watts come from.

comment 3y ago · link · parent

I have to guess that a lot of the sales are things like "please look at this specific plot of land once a week" or something way cheaper than having someone go take pics or something.

Like if your job is to make a bunch of money predicting crop futures you could probably justify spending.... $10k/year on pictures I bet? Though you gotta be careful with this kind of reasoning and not double-count your profits. And like all of this kind of stuff I bet that Maxar lives off of people with inflated budgets being able to ask for stuff.

comment 3y ago · link · parent

Inquisitorial systems (more present in civil law systems big also present in some US courts) have the judge act as a fact finder. In that model the judge is basically an active participant in figuring out what happens, instead of just being a referee in between two parties. So the judge (a professional whose job it is to do this) is more of an active participant and a determiner of guilt rather than 12 randos off the street (modulo a bunch of stuff). This leads to things like guilty plea bargains not being as much of a thing if the judge doesn’t believe the confession.

Source: I read the Wikipedia article on inquisitorial systems and watch tv. So I don’t know what I’m talking about but it sounds nice (also aligns with what I’ve heard about French court procedure) I think this covers Japan too (anyone who plays phoenix wright might wonder: why is the judge just declaring a result?)

comment 3y ago · link · parent

In adversarial systems, the prosecution's objective isn't to reach a truth, but instead to fight to convict you. This incentivises dirty tricks, misrepresentation of facts, and ultimately the full force of state resources looking at putting you behind bars. And during this whole process you are often locked up anyways for this process, independent of actual guilt.

In that model and imbalance of resources, having statue of limitations in place alleviates the need for defendents to, for example, keep records of their actions and reasoning for 30+ years. How would you navigate being charged for tax evasion from 35 years ago, for example?

EDIT: to be clear, I don't think this is necessarily a precise defense of statuetes of limitations specifically, just a "well they're not a bad idea" sort of defense

comment 3y ago · link · parent

It's more that the article said "10% cut with Google would mean we would be losing money", yet they took the 15% deal from Apple. They could have done the same thing with Apple that they did with Google I think? Unless Apple threatened to delist them (though that would be another can of worms...)
1
474849
225