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

What does DFT prove beyond the pedantic "it proves what it proves"? Or rather, does it not heavily lean towards some reality?

comment 3y ago · link · parent

I am 99% certain there is a walkway there. There are plenty of absolutely inaccessible places in the Tokyo metropolitan area, but Tokyo Disneyland has a pretty flat/maintained walkway to give access to the whole park as the primary way of moving around IIRC

comment 3y ago · link · parent

but how do other places handle this? I see plenty of parks where grass is accessible and not entirely gone (granted, a lot of those places don't have the most lush grass, but they have grass!). Is it just constant replanting?

comment 3y ago · link · parent

> what about the enormous long-tail of abandoned extensions which still work today, etc.

I mean there they're talking about keeping GIL in (and I imagine that will be the case for many many years) so those would still keep working. The fear is if some libraries just drop GIL-ful support, but there too I am hopeful for that not to be the case.

comment 3y ago · link · parent

If someone is on KDE, I recommend the themes by phobian [0]. I had an issue where I needed to force my DPI to get things aligning nicely, but there's a lot of themes based off of various operating systems that are fun to mess with.

[0]:https://store.kde.org/u/phob1an

comment 3y ago · link · parent

There are plenty of Japanese scientists who are _at least_ extremely uncomfortable in English. Plenty of people who struggle to write their own stuff in English and get it corrected a lot. Though I think that beyond a certain level you have to be interacting internationally to get anywhere in your career so you're gonna be forced along.

Plenty of people would learn Latin to consume some content, but doesn't mean they are proficient in it itself, would be another example.

Having said that, I think that in the research field that merely ends up with "very confusingly written papers with mistakes large enough to hide process errors" more than "cannot communicate any info in English". But there are plenty of people who get their doctorate and their only English-language output is their final papers in themselves.

comment 3y ago · link · parent

You should look at the costs of most of the high-end Android phones. Apple does not sell the most expensive phones!

"People don't need high-end phones" perhaps, but somehow I don't see people making this comment about Samsung phones.

iphone 14 is only $800! Meanwhile loads of high-end Android phones are at $1000+. The meme is dead

comment 3y ago · link · parent

I just want to acknowledge that describing the problem is part of picking the solution, and it's not really _that much_ of a "I'm making the most neutral action and letting other people actually choose the solution".

Honestly the "real" hands off thing is letting somebody else also describe the problem and then probing it. But that might lead to a bit too much of an existential crisis for some people. And hey, if something works it works

comment 3y ago · link · parent

I don't mean this to be cynical, but I do think that it's worth acknowledging that describing the problem is also, in itself, a tool to guide people towards a solution they want. After all, people often disagree about what "the problem" even is!

Fortunately not every problem is like this. But if you look at, say, discussions around Python's "packaging problem" (and find people in fact describing like 6 different problems in very different ways), you can see this play out pretty nastily.

comment 3y ago · link · parent

Does Java have any sort of precedent for dynamically swapping out implementations at the first call of charAt to a more specialized string class? I have to imagine there's a lot of string stuff that _doesn't_ do this at all.

comment 3y ago · link · parent

Even after Py2 -> Py3, the platform-dependent decoding sitting around for _so long_ was so annoying. Just constantly running into issues with file reads because servers were configured a certain way. "Just specify the encoding" is like... fine, but annoying when it's some third party script I just can't use.

I'm at least glad we had some guarantees from being Python 3.

comment 3y ago · link · parent

I still do not understand how local rail ends up fragmented like this. The Tokyo metropolitan area has like… what? 8 operators? You’d feel like there would be some consolidation and yet.

comment 3y ago · link · parent

IT professionals with a decade of experience routinely fuck up their own environments and struggle to fix it. Asking IT staff to walk thorough “fixing up” a borked Linux env (for example because some kid is half following some tutorial to get some weird thing working and in the process breaking repos) is a major ask.

Having said that… yeah what I meant really is “have an easy way to reset it all”. This is what home directory partitions and the like are for, of course!

And schools are not in the business of teaching kids how to install an OS to a laptop. There are real things to do in the world.

Imagine being a kid who does not care about computers. You are now being asked to install an OS so you can use some word processor. What?

Interested kids should have good outlets and ways to experiment (like these tech interns fixing the busted computers!), but really the point of giving kids computers is not to get them learning sysops

comment 3y ago · link · parent

Since this is here and there is a point made about discussing the technical merits of [0]... can someone explain to me how the WEI stuff isn't easily "faked" by scrapers and the like?

I could see this being used in a similar way to user agents (sometimes helpful when working on bugs and fixing them on minor platforms!), but I'm really struggling to see the overall value-add here.

I get the politics aspect of it (I think...), but what's the new technical thing being added here?

[0]: https://github.com/RupertBenWiser/Web-Environment-Integrity/...

comment 3y ago · link · parent

I am happy there is info on how to "liberate" these devices. The school's usecases are much more around having a locked down environment so that kids' systems can be recovered easily, and I don't know if just installing Ubuntu helps a lot with that use case.

Given enterprise environments exist though, I do feel like there must be _some_ sort of setup that could be done to get a fairly robust environment. Especially if the kid's accounts are locked down enough. Bit of an OS distro problem, but the market might be there given what we're seeing here!

comment 3y ago · link · parent

tbqh, since these are all chromebooks, "Does this run Chrome" covers a hell of a lot of ground.

The device management stuff is probably the big kicker, since I imagine schools can manage these machines quite easily through some Google management console.

Maybe if Google added support for machines running some Ubuntu LTS or otherwise....

comment 3y ago · link · parent

It would be a very big win for goodwill if Google built out a team that took over as much of this as possible. Just have a bunch of this hardware and try to keep these machines up to date.

The biggest problem from the outside feels like people working at Google might not be super hype about this (no I'm not talking about the "new project to get promoted" treadmill, just vibes), and really there's probably external people who are up to this.

But seriously, just figuring out how to get these to run "forever" in whatever degraded capacity is possible. At least until the hardware itself starts falling apart of course.

1638.

Software ‘death dates’ are sending schools’ Chromebooks to the recycling bin(mercurynews.com ↗)

19 points · by rtpg · 3y ago · 15 comments

comment 3y ago · link · parent

"ask LLM, then look up the language/library docs to see if the idea makes sense" has worked relatively well for me.

comment 3y ago · link · parent

Right, I agree with that. I think in practice this is largely circumvented by ad-hocing tagged unions in these cases.

Higher level, I think that it's fairly rare to see Optionals outside of the _very_ basic cases, and downstream of that you're actually not flinging around nulls or undefined as data. Instead everyone reaches for a kind attribute. Especially in cases like you're talking about (where there's this notion of not finding something, but also this notion of something still loading).

Not to say the distinction doesn't matter, but TS feels well designed in the sense that all of its unsafety is in places that end up not coming up in many "normal" codebases

comment 3y ago · link · parent

but the untagged union is still an aggregate at the type level right? Your data is a union at runtime, but at the type level it's a distinct thing, yeah? TS in particular is offering bespoke anonymous unions, which is a different sort of beast.

comment 3y ago · link · parent

While I get what you're referring to, the issue of Typescript getting this mixed up is not a real issue.

Why? If you write a function that takes T | null and returns T, then you're going to need to filter out your null.

Now, Typescript isn't safe, so you can have f: (T | null) -> T and give it a (null | null) and its return will indeed be null (at least at the moment, see [0]).

But your function's type guards will, at one point, filter out the null case. You might try doing this through some assertion, but if you do the runtime check, it will in fact blow up at runtime.

So Typescript will allow invalid code, but if you are actually doing type assertions correctly you'll get a runtime error at the "type narrowing" step. Worse than static verification of course, but better than carrying around a null that you think is not null.

Anyways, yeah, the conclusion is that in TS at least, T | null narrowing to T doesn't mean that T is not null. TS is at least smart enough to handle that.

[0]: https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABGO...

comment 3y ago · link · parent

You can, because Rust doesn’t support first class Union, and uses ADTs. Something like Typescript allows you to write “(T | null) | null)” but that is not the same thing as a double-Option’d type.

comment 3y ago · link · parent

There is of course a lot of unfair social dynamics at play in industry hiring, but at least there are a lot of industry jobs to compensate a bit.
1
545556
225