Readit News logoReadit News
ddavis commented on 996   lucumr.pocoo.org/2025/9/4... · Posted by u/genericlemon24
j_bum · 3 days ago
When I was getting my Ph.D., my advisor jokingly told me that his lab has three 8 hour shifts per day, and I could pick two to work.

This was never literally practiced.

But excessive hours were the norm. And I loved it. It helped me launch into a successful career.

But it hurt my relationship with my partner (now wife), and it burned me out.

I miss those days, but I don’t miss what they did to my health.

ddavis · 3 days ago
I have a similar experience. I was a devoted PhD student working long hours taking on a lot of responsibility. It burned me out, hurting my productivity. I have mixed feelings about it; I love the friends I made and the things I learned, but I don’t think I should have had to suffer what I suffered. Simultaneously I’m somewhat glad I experienced it then, because now I work in tech and I’ll _never_ work outside of business hours (I’ll hack on personal projects I consider fun if I feel like it). And I’m more productive than my colleagues that do. There’s something mysterious about the contemporary PhD, not all good and not all bad.
ddavis commented on The Little Book of Linear Algebra   github.com/the-litte-book... · Posted by u/scapbi
ddavis · 7 days ago
The organization and formatting of the single .tex file is such that one could almost read the source alone. Really nice. Also, I had no idea that GitHub did such a good job rendering the LaTeX math in markdown, it's imperfect but definitely good.
ddavis commented on PYX: The next step in Python packaging   astral.sh/blog/introducin... · Posted by u/the_mitsuhiko
ddavis · a month ago
Been waiting to see what Astral would do first (with regards to product). Seems like a mix of artifactory and conda? artifactory providing a package server and conda trying to fix the difficulty that comes from Python packages with compiled components or dependencies, mostly solved by wheels, but of course PyTorch wheels requiring specific CUDA can still be a mess that conda fixes

Deleted Comment

ddavis commented on Berkeley Mono Typeface (v2)   usgraphics.com/products/b... · Posted by u/nitinreddy88
ddavis · 8 months ago
I really like Berkeley Mono and I don’t regret my old purchase, but my Emacs and Terminal configs have been rocking Pragmata Pro for a while now. Looking at the version 2 release notes it appears that Berkeley Mono has some new condensed widths (something I think keeps me using Pragmata Pro). Will have to take it for a spin.
ddavis commented on OpenMP 6.0   openmp.org/home-news/open... · Posted by u/mshachkov
phkahler · 10 months ago
OpenMP is one of the easiest ways to make existing code run across CPU cores. In the simplest cases you simply add a single #pragma to C code and it goes N times faster. This is when you're running a function in a loop with no side effects. Some examples I've done:

1) ray tracing. Looping over all the pixels in an image using ray tracing to determine the color of each pixel. The algorithm and data structures are complex but don't change during the rendering. N cores is about N times as fast.

2) in Solvespace we had a small loop which calls a tessellation function on a bunch of NURBS surfaces. The function was appending triangles to a list, so I made a thread-local list for each call and combined them after to avoid writes to shared data structure. Again N times faster with very little effort.

The code is also fine to build single threaded without change if you don't have OpenMP. Your compiler will just ignore the #pragmas.

ddavis · 10 months ago
OpenMP is great. I’ve done something similar to your second case (thread local objects that are filled in parallel and later combined). In the case of “OpenMP off” (pragmas ignored), is it possible to avoid the overhead of the thread local object essentially getting copied into the final object (since no OpenMP means only a single thread local object)? I avoided this by implementing a separate code path, but I’m just wondering if there are any tricks I missed that would allow still a single code path
ddavis commented on Codestral: Mistral's Code Model   mistral.ai/news/codestral... · Posted by u/alexmolas
sanex · a year ago
Can you get it right without an IDE?
ddavis · a year ago
Nope, I don't know how to do it at all- that's why I have to ask AI!
ddavis commented on Codestral: Mistral's Code Model   mistral.ai/news/codestral... · Posted by u/alexmolas
bongodongobob · a year ago
Cool, you've identified that your prompt is inadequate for the task.

'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?'

ddavis · a year ago
It's something I know how to do after figuring it out myself and discovering the potential sharp edges, so I've made it into a fun game to test the models. I'd argue that it's a great prompt (to keep using consistently over time) to see the evolution of this wildly accelerating field.
ddavis commented on Codestral: Mistral's Code Model   mistral.ai/news/codestral... · Posted by u/alexmolas
ddavis · a year ago
My favorite thing to ask the models designed for programming is: "Using Python write a pure ASGI middleware that intercepts the request body, response headers, and response body, stores that information in a dict, and then JSON encodes it to be sent to an external program using a function called transmit." None of them ever get it right :)
ddavis commented on OpenBSD is a cozy operating system   btxx.org/posts/OpenBSD_is... · Posted by u/skeptrune
laweijfmvo · a year ago
ELI5 why the “xz drama” couldn’t happen on openBSD? do they not use open source packages? are they assuming they would have caught it before adding the infected version to their repos?
ddavis · a year ago
The back door relied on a couple of Linux package management systems (if I’m recalling correctly, it had .deb and .rpm checks, see https://marc.info/?l=openbsd-misc&m=171227941117852&w=2)

u/ddavis

KarmaCake day697August 22, 2015View Original