Readit News logoReadit News
plusplusungood commented on Anthropic Explicitly Blocking OpenCode   gist.github.com/R44VC0RP/... · Posted by u/ryanvogel
mr_mitm · a month ago
I believe they want you to use the API subscription if you want to use their service with OpenCode. It's possible, just more expensive.
plusplusungood · a month ago
That is analogous to the water company charging you more if you use a faucet from another company. It's not a fair competition.

That's why we are supposed to have legislation to regulate that utilities and common carriers can't behave that way.

plusplusungood commented on Formatting code should be unnecessary   maxleiter.com/blog/format... · Posted by u/MaxLeiter
gorgoiler · 5 months ago
Democracy, strictly speaking, would be to periodically elect the most popular formatting policy once every sensible-time-period.

I’ve seen companies with such a large amount of developer churn that literally one person was left defending the status quo saying “we do X here, we voted on it once in 2019 and we’re not changing it just for new people”. 90% of the team were newcomers.

(The better teams I’ve worked on maintain a core set of leaders who are capable of building consensus through being very agreeable and smart. Gregarious Technocracy >> Popular Democracy!)

plusplusungood · 5 months ago
Ah, the infamous, but fictional, Monkey Ladder Experiment.
plusplusungood commented on Google's new pipe syntax in SQL   simonwillison.net/2024/Au... · Posted by u/heydenberk
yarg · a year ago
It was in 3.5 only.

If they've replaced it with something else in the last decade and a half that does not mean that they didn't get rid of it, or that it wasn't short lived.

https://learn.microsoft.com/en-us/dotnet/framework/data/adon...

plusplusungood · a year ago
LINQ is not the same as LINQ-to-SQL. The former is a language feature, the latter a library (one of many) that uses that feature.
plusplusungood commented on Befreak is a purely reversible two-dimensional programming language (2003)   tunes.org/~iepos/befreak.... · Posted by u/akkartik
free_bip · 2 years ago
Remainder after division is one. E.g. 12 mod 4 = 0. There's no way to reverse that operation given only the output and the modulus. (x mod 4 = 0 has infinite solutions)

Bitwise operators are another. A & B, A | B, A << B, A >> B are all in general not invertible given the output and B. (e.g. A | 1 = 1, is A 0 or 1?)

Now I haven't looked at the language in detail, maybe there's a way around this, but it sounds like if truly every single operation is invertible, then there would be no way to calculate these simple functions.

plusplusungood · 2 years ago
In addition to the standard ways of dealing with this given by other commenters (keeping the original input around), perhaps more interesting is to imagine how befreak might compute 12 mod 4 using repeated subtraction.

I'm not clever enough to write the solution, but I imagine a loop using the branching operators (<, >, v, ^). Since each time through the loop pushes a bit onto the control stack, you have a built-in count for the number of times the loop was traversed.

In the example of 12 mod 4, the program would loop through 3 times and break once giving you 0001 (or 1110) on the control stack and something like 12, 8, 4, 0 on the stack. Then when reversing, control bits would be popped off and you'd end up going back 0, 4, 8, 12.

plusplusungood commented on Scientists have studied the behavior of cats sitting on squares (2021)   vice.com/en/article/v7eex... · Posted by u/Tomte
plusplusungood · 2 years ago
Funny, a kid at my son's science fair did this for their project. I don't recollect if he had a bibliography...
plusplusungood commented on You can have two Big Things, but not three   longform.asmartbear.com/t... · Posted by u/gmays
nocoiner · 2 years ago
No, no deeper meaning here. That’s exactly what it’s saying.

Well, what it’s actually saying is that the hypothetical employed married person who spends time with his kids and friends is shitty at two of those things. (Perhaps more, or even all, but at least two - because, you know, that’s the rule of life.) What an inspiring and actionable message.

I grant that as a married person with a job and kids, I’m not great at pursuing hobbies or spending a ton of time with my friends, but I love the author’s implication that either my job, my spouse or my kids was just a bridge too far and I’m just out of luck when it comes to one of those.

plusplusungood · 2 years ago
Yeah... I think this article is bullshit. A better analogy, imo, is the somewhat cliche rocks in a jar. I'm my experience, you get ONE big thing in your life. But there can still be room for other, smaller rocks.

But the overall message is fine, if obvious. You have to prioritize, you can't do everything.

plusplusungood commented on Mustard   chloelist.substack.com/p/... · Posted by u/zdw
seszett · 2 years ago
> Francis French

This is a whole other level, since Francis basically means "French".

plusplusungood · 2 years ago
Also his name, said aloud, is a tautology. France is French.
plusplusungood commented on Storing binary data in playing cards (2014)   timwarriner.com/carddata/... · Posted by u/vmoore
LoganDark · 2 years ago
`52!` is indeed between 225 and 226 bits of information.

    > 52!
    = 80,658,175,170,943,878,571,660,636,856,403,766,975,289,505,440,883,277,824,000,000,000,000

    > 2^225
    = 53,919,893,334,301,279,589,334,030,174,039,261,347,274,288,845,081,144,962,207,220,498,432

    > 2^226
    = 107,839,786,668,602,559,178,668,060,348,078,522,694,548,577,690,162,289,924,414,440,996,864

plusplusungood · 2 years ago
I used this fact in an interview ages ago. The interviewer wanted a function, in Java, that shuffled a deck of cards such that every permutation was equally likely. I pointed out this was not possible using the standard library random functions since the seed is a long (akshually... it's 48 bits).

They inexplicably hired my know-it-all ass...

plusplusungood commented on Send Me to Heaven   en.wikipedia.org/wiki/Sen... · Posted by u/wds
terminous · 2 years ago
> There are federal regulations that prohibit operating a GPS at faster than xx mph speeds, basically to prohibit guided missiles, and this would kick in first (may even trigger an error state in the accelerometer or OS, I'm pretty sure).

This app doesn't use GPS, it uses accelerometer. It is 100% legal in the US to operate a GPS while over CoCom/MTCR limits: above 1,000 knots (510 m/s) and/or at an altitude higher than 18,000 m (59,000 ft). The regulation is on the GPS manufacturer, who is required to output null/error/no GPS data if it detects it is above these limits (edit: unless they are licensed, which you can apply for if you're a defense contractor or in aerospace). It isn't like if a GPS device is traveling too high or fast, it is automatically a crime and bricks itself or alerts the authorities.

plusplusungood · 2 years ago
The regulation has changed and no longer limits use at altitude. Source: have launched high altitude balloons to 100000' and https://space.stackexchange.com/a/14695.

You still have to be careful to buy a GPS unit that isn't limited in altitude, though.

plusplusungood commented on Light can be reflected not only in space but also in time   scientificamerican.com/ar... · Posted by u/rbanffy
aptitude_moo · 2 years ago
Not entirely sure what time reflection is, but I'm pretty sure it doesn't mean anything related to anything going backward in time. Here I think it's explained better https://spectrum.ieee.org/time-reversal-interface

Edit: Now that I've read a bit more, it seems to me this is just reflecting light back but "all at once". Like if a light signal were a train going right and the first wagon is A (>>>[D][C][B][A]>>>), a normal mirror would make it bounce and the train would go back going left and wagon A arrives first (<<<[A][B][C][D]<<<). A """time reflection""" would make the train return backwards and wagon D arrives first like this (<<<[D][C][B][A]<<<). I understand it is like reflecting each wagon at the same time so the train comes back reversed. This looks cool but I think the article deliberatively makes it confusing so it sound like the movie TENET when it starts talking about entropy

plusplusungood · 2 years ago
Really going above and beyond on that, "write a function that reverses a string in place" interview question, aren't they? I'm afraid I'll have to dock points in simplicity though.

u/plusplusungood

KarmaCake day21September 4, 2023View Original