Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
syockit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
syockit
3y ago
Can't reply directly to bart because the thread is too deep, but really, they do send it another e-mail. Don't ask me what it's supposed to achieve. Purportedly, if you sent the attachment to the wrong person, then you can re
62.
▲
by
syockit
3y ago
While not really python, there's Coconut language that has the infix pipeline operator and compiles into python.
63.
▲
by
syockit
3y ago
Wow, now I learned something new. So even though statistics and machine learning overlap each other a lot, a word as simple as inference have totally different meanings. In statistics, it usually refers to determining the influence of an in
64.
▲
by
syockit
3y ago
The recognition of the phrase as a logical fallacy comes after the phrase starts to be widely used, not the other way around. If everyone starts saying "snowball out of control", then eventually the fallacy will be known as "
65.
▲
by
syockit
3y ago
This requires that you put have lines between major pieces of codes. Which I think is a good habit to have anyway. Some people use comments without preceding empty lines (oh why) to delineate code, so they'd have to change the regex a
66.
▲
by
syockit
3y ago
You print more money because you have to give out more money, whether if it's in the form of handouts or in the form of extra wages.
67.
▲
by
syockit
3y ago
Some of my colleagues were already complaining that the government is forcing them to take leave. I can't imagine how much grumpier they will get if the government forces them to take even more.
68.
▲
by
syockit
3y ago
(Score:5, Insightful)
69.
▲
by
syockit
3y ago
That must have been a rewarding experience! I made the mistake of memorizing the solution when I was a kid so solving the cube feels like a routine instead of actually solving a puzzle.
70.
▲
by
syockit
3y ago
That's why I make it a point to say "I see", "uh-huh" instead of "OK" to such statements, given that it's so easy to be misunderstood even though technically "OK" is an acceptable response.
71.
▲
by
syockit
3y ago
It is unfortunate that VLA type was made optional in C11. It's like throwing the baby out with the bathwater. Luckily, they decided to make it mandatory again in C23 again, with only the automatic allocation optional.
72.
▲
by
syockit
3y ago
I couldn't check it using Nsight Compute. It didn't find the kernel even though I ran it as root. A40 is supposed to be Ampere architecture, with GA102 chip so it should be supported. Maybe the toolkit I'm using is too old (C
73.
▲
by
syockit
3y ago
My experience with it was: with CSR format, SpMV got about 40x speedup compared to a single CPU core on a RTX 3090, with full core utilization. Rough calculation tells me it's equivalent to 80 GFlops, which is far from the full poten
74.
▲
by
syockit
3y ago
In fact, when I read the title of this submission, I thought it was related to Polyglu.
75.
▲
Dropbox accidentally billing two extra digits
(twitter.com)
3 points
by
syockit
3y ago
|
1 comments
76.
▲
by
syockit
3y ago
An interesting accident involving currency with no minor units (cents). The customer has been reimbursed and the issue was resolved.
77.
▲
by
syockit
3y ago
My contribution for Astro Slide is dated Oct. 2020. They've locked my contribution, so I consider it money burnt. While I was still naively waiting for it to come, I held on to my Gemini PDA for so long, even after its battery had bulg
78.
▲
by
syockit
3y ago
It's A UNIX System!
79.
▲
by
syockit
3y ago
What I like about having an input method editor (IME) is that I can easily type units like ℃ or ℉ to avoid ambiguity. For a Japanese IME, just type ど (do, for degree), press spacebar until it pops out a conversion candidate list, then just
80.
▲
by
syockit
3y ago
I have no idea what you've typed there. All I see is a heart and three boxes. And it doesn't seem that the boxes are decodable either. Whatever it originally was has probably been irreversibly replaced.
81.
▲
by
syockit
3y ago
The function is already inlined because the implementation is visible. You can check the assembly, it has no calls to the compare and swap functions. I guess you're right, since the function accepts a void pointer, it could also point
82.
▲
by
syockit
3y ago
Today I learned that for modern processors, quicksort code is small enough that the compiler can inline them if the definition is visible during compilation. See here for comparison of isort function implemented using plain static functions
83.
▲
by
syockit
3y ago
I remember hearing that rumour when they were building a tech center in Yokohama. But all the job listings never mention anything related to self-driving so I always wondered what they actually do there.
84.
▲
by
syockit
3y ago
That'd better be the real northern lights, and not someone forgetting to turn off the stove after realizing the lunch is ruined.
85.
▲
by
syockit
4y ago
According to an article I read, moshimoshi came from the telephone operators saying 申し申し (moushi moushi) to signify "I'm going to start speaking now". On a tangential note, 申し used to be the phrase when calling out to someone
86.
▲
by
syockit
4y ago
Speaking from no experience, but it should be doable. But since in most applications you're going to use floating point anyway (or, if you're using fixed point, maybe right bit shift or maybe even do integer division until it fits
87.
▲
by
syockit
4y ago
Wolfram Engine + VS Code (notebook plugin), anyone?
88.
▲
by
syockit
4y ago
Are you sure about that? Did you take the picture of his brain to confirm?
89.
▲
by
syockit
4y ago
Me neither. In the VLA use cases page he does that with multidimensional array too. int (*arr)[n][m] = malloc(sizeof *arr); which you have to access with (*arr)[i][j] I prefer doing int (*arr)[m] = malloc(n*sizeof(*a
90.
▲
by
syockit
4y ago
Why instantly crash when out of memory instead of letting caller decide what to do? Also, some GString methods that have string length argument do not append NUL terminator, assuming that the input string is terminated at length+1. This cou
More ›