HNHacker News
TopNewBestAskShowJobs

pbsds

50 karma · joined May 28, 2020

submissionscomments
pbsds··on A statistical analysis of Rotten Tomatoes
a mean rating of 3 can only be 100% fresh if the variance is 0
pbsds··on TikTok goes dark in the US
If concentration of control over concentration scares you then a social media not owned by the US should be welcome. Now you have an all-american echo chamber.
pbsds··on Paris to Berlin by train is now faster by five hours
Trains are more comfy, almost silent and way more convenient. You don't have to start traveling to the airport 3 hours in advance. There is also this little silly thing people talk about called global warming
pbsds··on Jupyter AI
...reproducable? Doesn't GPT change all the time?
pbsds··on A 6.7 inch E-Ink display that pairs with your smartphone
I've been wanting something like this for a long time
pbsds··on Gojq: Pure Go Implementation of Jq
Gron has the same issue, as it too is written in go and randomizes key order.
pbsds··on Every single time I open your software, I'm asked to download an update
It's when a package manager updates Firefox while it's running.
pbsds··on Every single time I open your software, I'm asked to download an update
I prefer the Firefox solution. Chrome "solved" this by running the outdated version untill restart. But if you click a link outside of chrome it opens in a new instance of the updated version, without your old tabs. If you at this point close all chrome windows then you've lost all the tabs on the outdated instance.
pbsds··on I Made Minecraft, but It's 4D [video]
A 3d spider could easily be invisible to the 2d guy, by simply staying clear of his viewing plane. Hence why the "approaching perpendicular to his plane of existence" YouTube comment is actually terrifying.
pbsds··on Ask HN: Best practices for editing remote code locally?
Many editors support the rmate protocol, enabling you to open a remote file from a ssh session in your local editor.
pbsds··on Ask HN: Best practices for editing remote code locally?
For this i combine entr and rsync
pbsds··on Show HN: Pylectronics – Reproduce digital electronics in Python
You could implement your design in nmigen [1], use it to generate either verilog or rtlil, then use yosys (via [2]) to reduce it to an AND and NOT circuit (using the 'aigmap' command), then visualize it with [3]

[1]: https://github.com/nmigen/nmigen

[2]: https://yowasp.org

[3]: https://github.com/nturley/netlistsvg

pbsds··on In Praise of Open Source Textbooks
Could a equation OCR system like [1] be combined with a screen reader? It seems to support asciimath

[1]: https://mathpix.com/ocr

pbsds··on Python 3's F-Strings: An Improved String Formatting Syntax

    _("Hello, {name}).format(**vars())
pbsds··on Most surgeries are ineffective
> 5/ As Dr Ian Harris said, the unsaid attitude could be stated like: “you have to operate on patients quickly before they get better“.

Wow, really puts a new perspective on the usually massive wait times here in Norway.

pbsds··on Launching the 2020 Nim Community Survey
This survey doesn't have a case for those who know of Nim but have yet to try it out. Expect a lot of 'other' responses to read through.
pbsds··on Remote-CLI: execute tasks on remote hosts while working locally
This has for me been a godsend after corona hit. The ".remoteenv" file is for me the killer feature. Being able to bundle remote-cli in my python-poetry dev environment makes the setup trivial as well.

For those interested, here is my ".remoteenv" file to setup poetry using conda: https://gist.github.com/pbsds/fe243e518717531b10b2782add5192...

pbsds··on PEP 638 – Syntactic Macros
https://docs.python.org/3/whatsnew/3.8.html#cpython-bytecode...

https://bugs.python.org/issue33387

pbsds··on Firefox 81.0
Have you tried enabling pixel-perfect scrolling?
pbsds··on Fastcore: A library that extends Python with new features
I agree on the monkeypatching of pathlib. It makes it difficult for a reader to look up what the functions do. Providing a different module, like `import nPathlib as Pathlib` would be a lot more discoverable.
pbsds··on Ketamine that's injected during arrests draws new scrutiny
Not guaranteed
pbsds··on Nim – Python-like statically-typed compiled language
Worth mentioning is NimScript, a subset of nim which can be interpreted, and embedded like lua: https://nim-lang.org/docs/nims.html

If for some reason the nim compiler starts becoming slow, then this could also drastically speed up development

pbsds··on Branchless Programming: Why “If” is Sloowww, and what we can do about it [video]
All of these cases should really be done by the compiler on O3.
pbsds··on Create diagrams with code using Graphviz
This one is also web-based, but it takes graphviz source: https://sketchviz.com/new
pbsds··on Micro: Modern and intuitive terminal-based text editor
I have a love-hate relationship with `micro`:

When it works i love it. I have used it as my go-to editor for at least the last 2 years for quick edits and remote development. It is distributed as a static binary you can put in your `~/.local/bin`, making it is easy to install on systems you don't have admin access to. It has decent syntax-highlighting, lots of themes, easy to configure and has a very gentle learning curve. I'd say micro is a better alternative to nano for beginner, with the exception that nano works better in more limited terminals like putty and cmd.

However, at times it simply stops being able to access the X clipboard. It doesn't support code folding. And after longer sessions it seems to run out of space on the LUA stack. (Some lua calls don't properly clear the stack when done it seems, though I haven't seen this yet on v2.0). I bring with me my keybindings everywhere, since they seem to have swapped around CTRL and ALT for word navigation and for moving lines of text, (This decision might be due to limitations in some terminal emulators). There is also a history of inactivity of the main author, leaving many PRs ignored for long stretches of time. Some are over a year old and has seen no feedback from the main author.