News for hackers. Stuff that matters.

nurpax

A fun quote from the paper:

”We also challenge you to improve these results. With modern methods, we have now exceeded LeCun et al.’s 1998 accuracy (MNIST images 9,930 correct, ours 9,949), on a computer from 1982, so perhaps we can again move the needle a few years forward?”

Re:Leveraging Zig's Allocators on Saturday June 15, 2024 @11:30AM (#40690379)
The same can happen with C malloc/free too.
AR?
It’s not just you. Python seems to suffer from Python-specific ”tutorial sites” being SEO’d above Python’s official docs. I don’t know what it is about the Python documentation that lowers its rank on Google search results. In general, not a big fan of Python docs.
Re:A common mistake when NumPy’s RNG with PyTorch on Sunday April 11, 2021 @04:56PM (#26773344)
This field contains the worker-specific seed:

    torch.utils.data.get_worker_info().seed
So I guess something like the below (untested!) could work too:

   worker_init_fn=lambda id: np.random.seed(torch.utils.data.get_worker_info().seed)
Re:Python 3's F-Strings: An Improved String Formatting Syntax on Wednesday January 20, 2021 @03:44PM (#25851748)
Yup, especially as you often need to access dict's with foo["field"] and you get a syntax error if the f-strings is also f"". JavaScript backtick syntax doesn't lead to this extra syntactic friction.
Re:Colorize Your CLI on Sunday July 26, 2020 @02:38PM (#23959117)
Inline images would be great too (bitmap or svg). There’d be a lot less need for something like jupyter if you could show images in the shell.
Re:Hundreds arrested as crime chat network cracked (BBC) on Thursday July 02, 2020 @03:42PM (#23717171)
This was an interesting Twitter thread about Encrochat: https://twitter.com/josephfcox/status/1278638671416168450?s=...
Re:Linear – A fast issue tracker on Tuesday June 30, 2020 @04:11PM (#23694251)
Looking forward to trying out Linear. I'd really love to use a tool with good performance and offline support! Your website looks slick and lovely too.

Alas, the e-mail sign up seems to take a while to send the registration link e-mail. When I got the e-mail after maybe 5-10 minutes of waiting, the sign up link had already expired. :( It says "Verification code expired. Please request a new one." I did, but the same thing happened.

Re:Linear – A fast issue tracker on Tuesday June 30, 2020 @03:35PM (#23693896)
The download page says only macOS is currently supported. Electron supports Windows and Linux quite well - any ETA on when you will be adding these platforms?
Re:Containers vs. Zones vs. Jails vs. VMs (2017) on Monday April 06, 2020 @07:24PM (#22798921)
I’d like to think so too. It’s hard to actually understand how Docker works by reading their documentation.

Everything looks so simple.. and it magically runs on macOS and Windows too. No wonder people think it’s some sort of a VM.

At least static sites on places like GitHub pages need client-side analytics as you cannot access their logs.
Re:Petmate – C64 Petscii Editor on Saturday January 11, 2020 @03:33PM (#22022098)
Thanks! PNG import is mainly intended for pulling PETSCII content into Petmate from running .prg files in VICE. The pixel data and image dimensions need to match exactly for the import to succeed. I try to explain it in the docs but the feature just kinda doesn’t do what most people expect it to.
Re:Petmate – C64 Petscii Editor on Saturday January 11, 2020 @03:06PM (#22021950)
Petmate author here. Doesn’t notarization require an Apple Developer ID? Out of principle, I don’t want to pay Apple 100 USD a year just to build my free app.
Re:I Do Not Like Go on Friday December 21, 2018 @04:43AM (#18732321)
> made a huge mistake not having proper union/sum types (AKA Abstract Data Types/ADTs)

Did you mean algebraic data types?

Re:Break down of a C64 demo effect on Saturday June 23, 2018 @03:50PM (#17383075)
I also used some Haskell in another C64 project. Made a VICE memory snapshot parser for digging some values out of RAM. Haskell was a lot handier for byte level access than Python.
Re:Break down of a C64 demo effect on Saturday June 23, 2018 @03:49PM (#17383065)
Thanks!