Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
breuleux
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
361.
▲
by
breuleux
6y ago
That's not too bad if it would be a syntax error to either set or shadow an existing variable with the match statement. Apparently it isn't, which is concerning. Personally I think I may have preferred something like: match
362.
▲
by
breuleux
6y ago
Seems fairly different. My tool does not restart the process, it hot patches functions and methods whenever they are modified in the source, like the OP.
363.
▲
by
breuleux
6y ago
For what it's worth, I'm working on my own reloader which does not require decorating anything: https://github.com/breuleux/jurigged (still a WIP, but it works well enough).
364.
▲
by
breuleux
6y ago
That's a bit awkward, I'm currently working on a package[1] that does more or less the same thing in more or less the same way (I think), except you don't need to decorate anything. Just run `python -m jurigged script.py` or
365.
▲
by
breuleux
6y ago
There's one for PyTorch, I tested it about a year ago. You have to compile it from scratch and IIRC it translates/compile CUDA to ROCm at runtime which causes noticeable pauses on the first run. There may be other tweaks you have
366.
▲
by
breuleux
6y ago
It could still address bubbles in a small way, by making them more accessible: if you can switch the overlay easily, you can get a peek at what other people see and understand their point of view a little better. You can also see what your
367.
▲
by
breuleux
6y ago
Captures cannot be undone either, but yes, that might be a problem. Go solves it with the ko/superko rule that states it is illegal to move in such a way to reproduce a previous configuration of the board, and I think the same rule wou
368.
▲
by
breuleux
6y ago
Sounds interesting! It could be played easily on a physical board by putting poker chips under the pieces. Without a way to replenish counts there is a risk of deadlock, though. Maybe an option to pass to recover one move on a piece of your
369.
▲
by
breuleux
6y ago
I had an idea for a chess variant recently that I haven't had time to test yet (but maybe it already exists?): it's exactly the same as normal chess, except on your turn you can move any piece, black or white, even your opponent
370.
▲
by
breuleux
6y ago
For what it's worth, I made a Python package that lets you combine both approaches: https://github.com/breuleux/breakword . You run your program once to print out what's going on, but it also displays a unique
371.
▲
by
breuleux
6y ago
I've been using my own interface to easily define CLI applications: https://github.com/breuleux/coleo (kind of a work in progress). Admittedly, the way it works is kind of black magic, so it's probably not fo
372.
▲
by
breuleux
6y ago
Probably because reality is complicated, confusing and boring. What drives up engagement are clear, coherent stories and narratives with twists and turns that leave us shocked or awed. If you want educational content to be engaging, you hav
373.
▲
by
breuleux
6y ago
Ohh, okay, I see. You're right, you can't define aliases/functions using direnv. That's a shame, that does seem useful.
374.
▲
by
breuleux
6y ago
direnv does allow more than just environment variables, you can run arbitrary commands. Personally I wouldn't run potentially expensive commands like building the project, but if that's really what's best for your workflow, i
375.
▲
by
breuleux
6y ago
direnv is super useful if you're working in Python and have multiple projects: you can add an .envrc file that activates the right virtualenv whenever you enter a directory. It's one less thing to worry about. I figure you can als
376.
▲
by
breuleux
6y ago
> generally we would expect a parallel algorithm to be no more energy efficient (with respect to total conceptual work performed -- e.g., training a fixed neural network) than an equivalent serial implementation I think it depends on how
377.
▲
by
breuleux
6y ago
If one understand how the butterfly effect works, it is clear that it cannot be used to achieve any particular outcome: events that are "on the knife's edge" depend on basically all small perturbations that ever happened in t
378.
▲
by
breuleux
6y ago
> For example imagine that you put a drop of ink in a glass of water (with some sugar). If a butterfly drinks some water, it will not change the final equilibrium state where the ink is evenly distributed. Yes and no. It will not change
379.
▲
by
breuleux
6y ago
It's a different trade-off for everyone, but I think you're underestimating the QOL improvement of "no wires". 1. No wire randomly snagging on door handles and other objects. 2. No forgetting your phone is on the table w
380.
▲
by
breuleux
6y ago
I'm a bit uncomfortable with how he romanticizes the "aggressively independent" quadrant as being the quadrant of startup founders, great innovators and Galileo (those with good ideas), even though that quadrant also clearly
381.
▲
by
breuleux
6y ago
Then one might also caution against the use of "never" in stating the second law of thermodynamics. It is a statistical law: the probability that entropy decreases in an isolated system is not zero, it is just extremely small. If
382.
▲
by
breuleux
6y ago
> But that's just an extreme form of sortition IMHO, by "randomly choosing everyone" I don't know, I think they're pretty different. The main point of sortition, the way I see it, is to pick a small subset of peo
383.
▲
by
breuleux
6y ago
Eh, there's a logic to it, I think. If you intend people to only nominate the people they know personally (because otherwise they are relaying their impression of a curated media image, or the opinion of someone else) then it's li
384.
▲
by
breuleux
6y ago
> It's not obvious that this must happen It's not obvious , but I think it does follow from the concept of general election. The problem is that being informed and rational about selecting a suitable candidate is considerably
385.
▲
by
breuleux
6y ago
I think the technocrat problem would be partly mitigated by the fact that you are bound to randomly pick a few people who are smart and informed enough to be able to critically look at what the technocrats are doing and possibly use discret
386.
▲
by
breuleux
6y ago
I don't think you want to pick the executive using sortition. I think a better system would be to pick the House of Commons using sortition and then have the House interview candidates for President/Prime Minister. In this scenari
387.
▲
by
breuleux
6y ago
> What if, instead, you had a personal AI that read every Facebook post and then decided what to show you. Trained on your own preferences, under your control, with whatever settings you like. There is a feedback problem, though, which i
388.
▲
by
breuleux
6y ago
It's not necessarily true you have to look. BTT lets you define actions for sliding 2/3/4 fingers left or right on the entirety of the touchbar. You can set it up to change volume, brightness, ctrl+tab, change the size of a d
389.
▲
by
breuleux
6y ago
I mean, you can always use more screen. On my touchbar I display the time, battery, weather. I also have a script to start a timer and display the time remaining on it (or the output of any script, really). It saves some screen estate. It&#
390.
▲
by
breuleux
7y ago
I'm no epidemiologist, but I doubt it. It just takes one infected person at the end of the global quarantine to get the ball rolling again. More importantly, though, the flu (just like SARS-CoV-2) is zoonotic, meaning that it can jump
More ›