Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
meisel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
meisel
1y ago
Aside from sanitization, this also allows replication of Ruby’s %W[…] syntax
62.
▲
by
meisel
1y ago
The template error messages look great. I wonder if it’s worth writing a translator from clang/gcc messages to these ones, for users of clang and older gcc (to pipe one’s error messages to)
63.
▲
by
meisel
2y ago
Looking forward to it!
64.
▲
by
meisel
2y ago
Personally I prefer bfs ( https://github.com/tavianator/bfs ) because it does a breadth-first search
65.
▲
by
meisel
2y ago
One of the big bottlenecks of plotting libraries is simply the time it takes to import the library. I’ve seen matplotlib being slow to import, and in Julia they even have a “time to first plot” metric. I’d be curious to see how this library
66.
▲
by
meisel
2y ago
The fastest thing I would think is to process 255 vectors at a time, using an accumulation vector with the k-th byte in the vector representing the # of evens seen for the k-th byte of the vectors in that 255-vector chunk. But, I don’t kn
67.
▲
by
meisel
2y ago
Seems like you can do this sort of speed up even without the 256 constraint. Just run this sped up version, but after each set of 256 iterations, dump all the 8-bit counters to the 64-bit final result.
68.
▲
by
meisel
2y ago
This article presents a readable overview of today’s NBA trends, but IMO is too absolute in its judgment. Basketball is not a solved sport. There is still innovation, for example with OKC’s historically good defense that relies on playing 5
69.
▲
by
meisel
2y ago
Would allocating a 640-byte string initially really be the right tradeoff? It seems like it could result in a lot of memory overhead if many small strings are created that don’t need that space. But it does save a copy at least As for the i
70.
▲
by
meisel
2y ago
Do you expect that Apple’s bigger security initiatives, like pointer authentication and writing the OS in a memory safe language, will improve the situation?
71.
▲
by
meisel
2y ago
Take a look at SAX parsers
72.
▲
by
meisel
2y ago
All of the would be a big savings in code complexity and a win for reliability, compared to doing new untested optimizations. If memory usage is a concern, I’m sure there’s a fast C SAX parser out there (or maybe one within yyjson)
73.
▲
by
meisel
2y ago
yyjson is a very fast C89 compliant C parser that can both parse and generate JSON
74.
▲
by
meisel
2y ago
Very fun read! I’m curious though, when it comes to non-Ruby-specific optimizations, like the lookup table for escape characters, why not instead leverage an existing library like simdjson that’s already doing this sort of thing?
75.
▲
by
meisel
2y ago
It could be improved even more, performance wise. The potentially expensive modulo could be avoided entirely with an if statement. Or, only use powers of 2 for the capacity, and then you can also use bit wise ops
76.
▲
by
meisel
2y ago
I refuse to believe they didn’t notice a key difference in the phones - the iPhone 16 will feel much, much snappier. Games aside, just opening any old app will be much faster. I notice this every time I upgrade, even when it’s just going up
77.
▲
by
meisel
2y ago
This is what programming languages looked like to me before I learned programming
78.
▲
by
meisel
2y ago
When I start a lot of projects and only get halfway through them, I feel overwhelmed and frustrated by all the loose ends. I like to see projects through to release if I think they’re worth it, but that also requires a bit of self-imposed d
79.
▲
by
meisel
2y ago
How is there any discrepancy in accuracy? Isn’t it just a matter of following the spec?
80.
▲
by
meisel
2y ago
Moving Linux and its associated projects to GitHub would definitely help. I don't buy the arguments that GitHub isn't suitable for it, e.g. because it doesn't allow each sub-project to have its own area. Things like tags help
81.
▲
by
meisel
2y ago
I’d say address sanitizer is a better starting point, and likely to show memory issues faster than this
82.
▲
by
meisel
2y ago
It's typically just importing torch and s/np/torch, not too different from NumPy -> CuPy. Try it in your own code and see!
83.
▲
by
meisel
2y ago
When building something that I want to run on both CPU and GPU, depending, I’ve found it much easier to use PyTorch than some combination of NumPy and CuPy. I don’t have to fiddle around with some global replacing of numpy.* with cupy.*, an
84.
▲
by
meisel
2y ago
> The case in point is that most LLMs, including GPT-4o, cannot tell whether 9.11 or 9.8 is bigger! Wrong. GPT-4o gives me the correct answer to this question, 9.8.
85.
▲
by
meisel
2y ago
Neat!
86.
▲
by
meisel
2y ago
This looks similar to Triton, I wonder what it does differently. But in any case, for any of these libraries, it would be awesome if it could output object files from this, with PTX or SASS code. Then it can be linked into a binary instead
87.
▲
by
meisel
2y ago
How uncommon is it for apps to store sensitive data in this way? It wouldn’t surprise me if this is a pretty common, albeit non-ideal, practice. For example, where does chrome store browsing history data?
88.
▲
by
meisel
2y ago
Why wouldn’t they just replicate bash or some other UNIX shell, along with the basic UNIX tools like cp and find with matching APIs? Huge mistake there imo, even if they did add a few bells and whistles with powershell
89.
▲
by
meisel
2y ago
How does the hosted version compare to Deepnote?
90.
▲
by
meisel
2y ago
Although this project is undoubtedly very cool, and maybe simplifies build processes by having a single binary, is there any other reason to use it? How does it compare in terms of performance, static linkability, standards conformance, etc
More ›