21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 1y ago · link · parent
But! Even though it doesn't even get that much slower at a certain number of rows it just starts hanging! Like at 49 rows everything is still fine and at 50 it no longer wants to work. It's very bizarre and I'll see if I can debug it. But I think your test case isn't indicative of some fundamental issue with Hypothesis rather than some sort of bug.
comment 1y ago · link · parent
Silly idea for your generator would to generate an array, and if it's zero... draw a random index and a random non-zero number and add it into the array. Leads to some weird non-convexity properties but is a workable hack.
In your own example you turned off the "data too slow" issue, probably because building up a dataframe (all to just do a column sum!) is actually kind of costly at large numbers! Your complaint is probably actually meant for the pandas extras (or pandas itself) rather than the concept of hypothesis.
comment 1y ago · link · parent
But even with a debugger, there's still loads of value of sitting up, moving from writing a bunch of single line statements all over, and to writing a real test harness ASAP to not have to rely on the debugger.
For any non-trivial problem, you'll often very quickly appreciate a properly formatted output stack, and that output will be shaped to the problem you are looking at. Very hard for an in-process debugger to have the answer for you there immediately.
Being serious about debugging can even get into things like writing actual new entrypoints (scripts with arguments and whatnot) and things like adding branches togglable through environment variables.
I think a lot of people's mindset in debugging is "if I walk the tightrope and put in _one more hack_ I'll find my answer" and it gets more and more precarious. Debugging is always a bit of an exercise of mental gymnastics, but if you practice being really good at printf debugging _and_ configuring program flow easily, you can be a lot less stressed out.
Like if you think your problem is going to take more than 20 minutes to debug, you probably should start writing a couple helper functions to get you on the right foot.
comment 1y ago · link · parent
Probably important to consider that everything you know about SEALs etc are filtered through a massive PR system anyways. So you might not be comparing the same level of quality of video either. Good editing can do wonders.
comment 1y ago · link · parent
Like in this supposed age of a US government spending crisis the dollar is extremely strong compared to other currencies. Where is the hyperinflation? How many decades will we need to wait?
comment 1y ago · link · parent
Maybe you don't believe that a professional therapist can offer that guidance, of course.
comment 1y ago · link · parent
People who watched Europe through the Great Recession and walk away thinking "I guess austerity works" are not people seriously consuming information, they are ideologues.
comment 1y ago · link · parent
At least open source can outlive the entities that create the thing, and in theory is more about sharing process rather than trying to stomp out smaller players.
comment 1y ago · link · parent
There is a very fundamental critique here: a service being offered for free like this is being subsidized, messing with the general market dynamics that really should be making all of these tools cost way more money to begin with.
Of course Apple is also doing similar things, but for Mozilla to be doing it is quite frustrating.
comment 1y ago · link · parent
There's nothing wrong with looking at the ecosystem and saying "huh, this is a pretty good idea". Emacs (the community as a whole) didn't ignore the LSP, and thanks to that it gets first-class support for tools that otherwise would have required someone to show up and "do the work" to get it to happen.
I do think we're in agreement about "strategically, not tactically". Like Emacs _is_ doing its own thing. It's just that sometimes you can see good ideas from other places.
comment 1y ago · link · parent
Not a goal in itself to capture everyone, of course. But it's a data point!
comment 1y ago · link · parent
I've done Chicago -> Madison by bus, and honestly prefer it to the plane at least (even from the airport). More comfortable seats and I get out just at a station. High frequency bus lines feel like good indicators of where some trains could work, and it's not like bus services are dead.
(Similarly, I did Portland -> Eugene on Amtrak and it was nice and chill! I roadshared to my final destination but I had to get from A to B somehow)
comment 1y ago · link · parent
- For France, rural areas don't really have that good of a rail network. Instead there are several trunk lines that are reliable. But it means that east-west stuff is nearly non-existent. Lots of "drive me to the station and drop me off please". Good enough to put France at number 2 in numbers of km ridden per passenger!
- For Germany, the network is much more evenly spread out. But ever German I've met complaints constantly about the unreliability of the trains, combined with the low rate of service. So you end up with stations everywhere, but if a train gets cancelled you could be stranded for hours.
Anyways I do think the French model makes a hell of a lot of sense (prioritizing train frequency over coverage), but it might not be what people are expecting if they just look at a map of trains.
comment 1y ago · link · parent
Software A and B depend on C (version V). A has a bug that gets fixed by shipping with C version V+1. B unfortunately has a latent bug that appears when shipping with C (version V+1).
You’re now going to have to do a bunch of work, outright not ship stuff, or even introduce bugs because of this policy!
Nobody wants buggy libraries, and in this example it’s not the library’s fault (B might just be misusing C, or in fact compensating for a bug).
Reading through these threads I’m much more empathetic to the software bill of materials argument than before as a justification for this policy. I do not think there’s an intrinsic quality argument to the global single version policy.
Bug fix releases are proof that sometimes you do really just need to put out new things to fix a bug.
comment 1y ago · link · parent
I release foo 1.2.3 as a package, when doing it depending on bar 4.5.6. Perhaps foo still compiles with bar 4.5.2 or 4.6.8... but that's _not_ foo 1.2.3 right? And if there are bug fixes in some of those but not others, if I had my deps set up to just package with "bar 4.x" , suddenly I'm getting bug reports for "1.2.3" without a real association to "the" 1.2.3.
I'm saying this, perhaps this is as easy as having two sets of deps (like deps for repackagers, deps for people wanting to reproduce what I built)... but if a binary is being shipped _not_ being explicit about the exact dependencies used is upstream of a whole lot of problems! Is there a great answer from OS distro package managers for this?
Is the thing that should happen here be that there's a configure step in rust builds that would mess around with deps based on what you have?
comment 1y ago · link · parent
Then you can pick up some book on shells (Effective Linux at the Command Line is one I'm going through right now), and you can piece a lot of it together.
There's no magic, just a combo of decent ideas working together. But no single idea is hard to implement. Maybe just hard to come up with from scratch.
comment 1y ago · link · parent
"This does X" as a comment when it in fact does Y in condition Z means that the probability you are looking at a bug goes up a bit! Without the comment you might not be able to identify that Y is not intentional.
Maybe Y is intentional! In which case the comment that "this is intentional" is helpful. Perhaps the intentionality is also incorrect, and that's yet another data point!
Fairly rare for there to be negative value in comments.
comment 1y ago · link · parent
We live in a world with version history, repositories with change requests, communications… code comments are a part of that ecosystem.
A comment that is outright incorrect at inception is still valuable even if it is at least an attempt by the writer to describe their internal understanding of things.
comment 1y ago · link · parent
So then you get into what you’re good at. Maybe you’re good at modeling business logic (even confusing ones!). Maybe you’re good at writing code that is easy to refactor.
Maybe you’re good at getting stuff right the first time. Maybe you’re good at quickly fixing issues.
You can lean into what you’re good at to get the most bang for your buck. But you probably still have some sort of minimum standards for the whole thing. Just gotta decide what that looks like.