Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Brentward
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
Brentward
2y ago
I agree that the comment sounded pretty hostile, but I also agreed with the assessment that it might be better to avoid allocation in general. I know the code in the post is highly simplified, but you aren't exactly fully using "l
2.
▲
by
Brentward
3y ago
Yes, at least the parts that my research group used regularly. I ported them to Rust, though, not modern Fortran. They're also pretty specific to computational chemistry, rather than general packages like PRIMA, but I'll link them
3.
▲
by
Brentward
3y ago
In grad school I worked on three separate Fortran code bases written as early as the 80s with tens of thousands of lines, no source control or version history, no build systems or even build scripts, and no tests. I think a lot of old scien
4.
▲
by
Brentward
3y ago
Yeah the article says these "aren't used anymore," but my image viewer (sxiv) complained that the gif was corrupted until I put something there. It still displayed the image, but it also complained afterwards.
5.
▲
by
Brentward
3y ago
Those examples contain overlap, but not in the first or last digit that is given as the solution. So from the instructions you can't tell that the intermediate list of numbers should be 8, 2, 3, you only know that the final answer is 8
6.
▲
by
Brentward
3y ago
I thought it was going to be the Excel DNA to date conversion. https://www.theverge.com/2020/8/6/21355674/human-genes-renam...
7.
▲
by
Brentward
3y ago
The second edition is out! I started reading it last week, and it's great so far. https://www.awk.dev/
8.
▲
by
Brentward
3y ago
Personally, I got tired of weird quirks like this with vterm and now bind this command to the key I used to have vterm on to spawn my actual terminal (st) in my current directory. It's probably not what most people want from vterm, but
9.
▲
by
Brentward
3y ago
In org-alert we use `org-map-entries` and a simple `org-alert--parse-entry` function for stripping out the details we're looking for. Depending on what you want, it's not exactly a data structure, but maybe it will help you get st
10.
▲
by
Brentward
3y ago
It already is! I've been building Emacs from the development branch for the last couple of years, and the improvements in 29 and now 30 have really been great. I barely remember the sluggishness the other comment mentions.
11.
▲
by
Brentward
3y ago
He links to a page about ARM MTE in the section where he talks about memory tagging and CHERI for the first time.
12.
▲
by
Brentward
3y ago
I agree, it's not about it being "easy" to find the documentation or "easy" to watch the video. This is the landing page for the project, and I'd much rather see the commands in the video listed out on the page
13.
▲
by
Brentward
4y ago
The example in previous versions of the Go math/rand package suggested using time.Now().UnixNano() to seed the RNG source since that's essentially a random int64.
14.
▲
by
Brentward
4y ago
Not sure exactly what they meant, but I assume most arguments in this vein have something to do with form. A well-executed deadlift is a great exercise, but you have to balance the risk of injury, especially for new lifters without a traine
15.
▲
by
Brentward
4y ago
For strength training StrongLifts seems like a good program. It used to be highly recommended on the fitness reddits, but I haven't followed them for a few years. Regardless, I think it's a solid program for starting strength trai
16.
▲
by
Brentward
4y ago
So write it locally in an unshared document and paste it into overleaf when you want someone else to see it? I don't like overleaf to begin with, but to feel this tied to it is a bit wild.
17.
▲
by
Brentward
4y ago
I think that's pretty clearly not the point. As someone who has worked with legacy scientific code written in Fortran, the copying is not the issue, it's blindly copying code that was written 50 years ago, probably by a graduate s
18.
▲
by
Brentward
4y ago
Can't you just provide a default implementation of the method on the trait itself? Unless there are more requirements I'm not parsing from what you wrote, that seems to do exactly what they wanted.
19.
▲
by
Brentward
4y ago
To expand on the other reply, there are a couple more implicit loops. There's a loop over all of the command line arguments/files, then a loop for every line in each of those files, then there is kind of a loop over the whitespace
20.
▲
by
Brentward
5y ago
> There is no equivalent of this today. I started using computers much more recently, but wouldn't any OS that boots into a TTY provide a pretty similar experience? I'm genuinely curious since I've never used a Commodore o
21.
▲
by
Brentward
5y ago
Since Go seems to respect the memory limit, you could try using syscall.Setrlimit to set an artificially lower limit that you know will leave enough room for your other allocations. Have you tried playing with the GOGC environment variable
22.
▲
by
Brentward
5y ago
Benzene is not a PFC as it only contains carbon and hydrogen, not the fluorine that puts the F in PFC. According to Wikipedia [1], "fluoroalkanes are generally inert and non-toxic" and "do not bioaccumulate." That was su
23.
▲
by
Brentward
6y ago
Not that this is an important part of the post, but in general parsing the output of ls like the author does in the for loop is a bad idea[1]. I think the one-liner would be better as for i in [0-8]*/*.sql; do psql -U <user>