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 3y ago · link · parent

Is the correct way to see this is that logic has to be specified in a finite number of terms? For countable families there’s some sort of meta logic like “for the Nth element I induct to that”?

I believe to understand that idea (since it comes up in real analysis to some extent, basically acknowledging there isn’t really infinite sums except as limits of finite sums), but is there a specific sort of text that lays out this idea specifically?

comment 3y ago · link · parent

But why do we need the axiom of choice at all? By this logic I have any family of non-empty sets then I’m good? But surely there’s a distinction here

comment 3y ago · link · parent

Basically every action taken by the executive, if only through the realities of selective enforcement, leads to decisions being made by "unelected bureaucrats". Unless we start voting for every cop, prosecutor, auditor, city planning official, the domain experts they bring on, etc.

If you agree that delegation at some level makes sense, then we're talking about degrees of delegation being considered reasonable. But outright ruling out any form of executive delegation seems kind of hard? Your argument would apply to every level of the state after all, including your city council.

comment 3y ago · link · parent

Yes I think SCOTUS is acting in bad faith. I do not believe this to be a radical point of view in this day and age. There is some navel gazing about how SCOTUS is the final say here so what they say "is right", in some sense, of course.

comment 3y ago · link · parent

since everyone here is bike shedding about the axiom of choice... I have this axiom of choice book (by Thomas Jech). It includes the following:

> if F is a finite family of nonempty sets, then there is a choice function (to show this one uses induction on the size of F; naturally a choice function exists for a family which consists of a single nonempty set).

could someone lay out how one would "correctly" describe a choice function for a family with a single nonempty set? I feel like I understand theoretically this idea that choosing isn't about providing the value, but some... logical instantiation? What is the piece of the puzzle I'm missing here to understand why the choice function exists "naturally"?

comment 3y ago · link · parent

What’s the pricing compared to stored energy like pumping water up a hill? I get that it’s not exactly a universal strategy but not like underground caverns don’t have the same issue

comment 3y ago · link · parent

> Isn’t having the decision decided by majority vote the least partisan thing you can do by definition?

Partisanship is not defined by "rightness" or "closeness to some notion of democracy", it's about closeness to a party line. Overturning Roe was a target of the Republican Party. They did it.

comment 3y ago · link · parent

> This should be plainly unconstitutional as the legislative branch is not empowered by the constitution to delegate its power to the executive

this is a fringe theory not agreed to by serious people, and used in a bad faith way by people who want to just dismantle the administrative state. The only logical conclusion from that thought process is no regulatory body can exist.

Though the "big tent" about regulations being mishandled by SCOTUS is that SCOTUS will often just throw out plain text interpretation of statutes and regulations when it doesn't satisfy the majority's overall goals.

comment 3y ago · link · parent

Seeing this does make me appreciate the "no such thing as a constructor" approach of Rust. Rust, of course, has a totally different object model.

OOP classes are really a bit of a triumph of engineering, because they offer a lot of nice ways to build out various complex systems (would rather build out GUIs in a Java-based object model than in a Rust-basd one). And the fact that moving the model "forward" in expressivity is so subtle and starts introducing a lot of asterisks is probably proof that it's some local maximum

comment 3y ago · link · parent

Accuracy here is probably about classification? Like “am I really putting this in the right box?”

comment 3y ago · link · parent

People in Japan call this emoji “pien” (pronounced “P N” if you’re American) which means like… slight dejection

Was one of the 2020 words of the year by some random group of people! https://www.nippon.com/en/japan-topics/c03823/amp/#

comment 3y ago · link · parent

What does this look like in practice? Does Perl have a similar control flow syntax to awk?

comment 3y ago · link · parent

I feel like you can just add a table to your DB and be done with it for most systems. I feel like people with large enough systems where “stick it into the DB” is not reasonable also should probably have a bespoke feature flag system.

comment 3y ago · link · parent

While I do agree that Twitter was pretty exceptional in allowing these clients to exist, as usual it’s about just doing it silently and not giving any rationale. At least have the courage to admit what you’ve done!

comment 3y ago · link · parent

A standalone MP3 player will tend to have a better interface that is much more responsive. Will be much easier to queue up certain kinds of things with a San Disk Clip Sport than an iPhone. Even just unlocking the phone is a whole thing!

The general thing of futzing around with a home screen, switching apps, having notifications?? When sometimes you just want an mp3 player.

This is my main frustration with these Sony walkmans, is that I'll still have to pay the UI friction cost from it running Android. Would love a device that really sticks to playing music... but I get that that is very hard since you lose streaming optionality.

comment 3y ago · link · parent

to be fair to Python, almost every ecosystem is in "use Docker" land, even Go binaries will offer docker images!

comment 3y ago · link · parent

I find the fascination with TempleOS honestly weird, and I think people are honestly only fascinated by it because of the author. We have had smalltalk for the longest time. We have had so many attempts at "embed rich content into shell", we have had all of this!

Hell, all of what you describe is basically available in the form of Mathmatica.

And "share a program with a friend" is called a webpage with Javascript. We have the universal VM, just not in the shape that you would like.

I don't want to be too dismissive of this stuff but I think at one point we gotta try using all these new fancy ideas that would be good for everyone, instead of constantly just imagining "what if they existed". Let's actualize a bit!

comment 3y ago · link · parent

I do understand the readability question in theory, but it is a thing where if you open it up in basically any text editor colors resolve it instantly.

I do feel like having to try and explain what expressions are in fact not allowed in f-strings seems more fraught than potentially having hard to read f-strings. Sounds like something where a Pylint rule could get us most of the way here by establishing a convention that most projects will follow for readability

comment 3y ago · link · parent

oh, I totally had the impression it was its own beast just from the UI being what it is. Maybe time for me to dig into this

comment 3y ago · link · parent

I think that would make rules against castling through check inconsistent, and allowing castling through check would make the game pretty weird tbh

comment 3y ago · link · parent

The 7th gen iPod Nano is basically the idea form factor for an everyday mp3 player, and it sucks that the stack not just being “upload music files onto a usb drive” means the device is susceptible to just not work anymore one day.

One of my “never going to do but will often think about” projects is to try and build an open design music player that doesn’t try to be a universal computational device but is at least not extra wonky like all the random ones you find on Amazon nowadays.

comment 3y ago · link · parent

personally I don't think there is that much value in society in endlessly vendoring exactly the same code in various places. This is why we have checksums!

I understand that Google will do this stuff to remove certain stability issues (and I imagine they have their own patches!), but I don't think that this is the fundamental issue relative to practical integration issues that are solvable but tedious.

EDIT:I do think people have reasons for doing vendoring, of course, I don't think that it should be the default behavior unless you have a good reason.

comment 3y ago · link · parent

I think that's a bit misleading (disclaimer: I very much like Bazel existing, though I think a better version of it could exist somewhere).

Surely a lot of work is put into Bazel core to support huge workflows. But a huge amount of work is put into simply getting tools to work in hermetic environments! Especially web stack tooling is so bad about this that lots of Bazel tools are automatically patching generated scripts from npm or pip, in order to get things working properly.

There is also incidental complexity when it comes to running Bazel itself, because it uses symlinks to support sandboxing by default. I have run into several programs that do "is file" checks that think that symlinks are not files.

Granted, we are fortunate that lots of that work happens in the open and goes beyond Google's "just vendor it" philosophy. But Docker's "let's put it all in one big ball of mud" strategy papers over a lot of potential issues that you have to face front-on with Bazel.

Once it works though... beautiful stuff.

comment 3y ago · link · parent

Except if the government owned it then there is no profit motive to begin with. At one point the number of intermediaries does start mattering (though I imagine that power suppliers are lower margin than other businesses)

There are a lot of details about... I suppose organizational theory? Which makes the decentralization nicer. But profits come from somewhere

comment 3y ago · link · parent

I think that on a holistic level if you reduce curtailment then in the end you get side effects (in the geometrical sense) that can cascade.

If we store more wind power to reduce curtailment, then that power can be used later. I end up getting a larger fraction of my overall power through wind, so my neighbor can have more access to alternative sources of power that I am not using. Their neighbors now have access to more power as well, because my neighbor is pulling more from my now unused infrastructure.

The gas burnt at peak might not change! But out of peak the balance can change (at least until, say, Scotland is running 100% on wind I guess). The nice thing with storage (especially hydro storage, which sidesteps everyone's universal answer of "batteries are expensive") is that you get to actually hold onto the energy and be "smarter".

comment 3y ago · link · parent

There's also a PS2 version, really cool stuff to see.

I don't know what schools are like nowadays but when I was in school I was taught Java and it feels like giving people ways to use that language in odd places is only going to bring about more good and fun projects to the world

comment 3y ago · link · parent

Unfortunately file extension removals gets into another weird space, where Typescript (well, `tsc`) won't rewrite your extensions, so if you add them you have to write "foo.js" even though the source file is "foo.ts" (at least in ES modules).

This gets solved by using some sort of packager, but it's another sort of bit of ugliness that doesn't feel like it's going to get resolved anytime soon.

comment 3y ago · link · parent

I wrote this, and would like to reply to the same comments repeated many times.

Preface: I wrote this as a whim, but understand that almost none of this is acceptable.

However! People claim these are not merely bad ideas, but not doable at a technical level. This is, to my understanding, false. These are merely bad ideas, but can be implemented!

> This does not make things stricter

True! The name was a bad idea, playing off "strict mode". The main thing was about opting into new behavior.

> let/const/var reshuffling can't work with existing code

This could be done at the tokenizer level. If you have "stricter mode" on the top of the file, you swap out the tokens.

> auto-await cannot work because some non-async functions return promises

A non-async function would simply return the promise value! I am not suggesting removing promises. I am suggesting that when a call to an async function happens from within another async function (async function being defined via syntax, not by return value!), at runtime, we insert the await (with an escape hatch via asPromise). This does not require solving the halting problem, and is merely extremely confusing and hard to explain and probably gets in the way of a lot of JITing efforts.

> name => {name} is not possible at a parsing level

It's possible! But it involves breaking the parse results of existing code. Python recently introduced changes that required more complicated parsers than before, and this would also be of a similar quality. Some recursive descent backtracking parser that simply tries to parse as an object literal, and if that fails backtrack would solve the requirement. Perhaps a well-thought out grammar could make this work without backtracking, but I would be surprised.

> foo.await is not possible

This is such a weird one to me. Rust has this! I am not saying "if an object lookup is for the key of await then do an await", but "if foo.await is in your actual code then that is the same as (await foo)". There's a difference between modifying syntax and modifying semantics, and I was proposing modifying of syntax, not object lookup semantics.

1
666768
225