Readit News logoReadit News
knutwannheden commented on I write type-safe generic data structures in C   danielchasehooper.com/pos... · Posted by u/todsacerdoti
gritzko · 8 months ago
Hi. I object.

The trick#0 you mention is how I made an entire C dialect. Here is a generic binary heap, for example https://github.com/gritzko/librdx/blob/master/abc/HEAPx.h The syntax is a bit heavyweight, but a huge huge advantage is: you get regular C structs in the end, very plain, very predictable, very optimizable. Compiler would eat them like donuts.

In the other cases, it is void* and runtime memory sizing and you have to define macros anyway.

knutwannheden · 8 months ago
> Compiler would eat them like donuts.

Made me laugh out loud!

knutwannheden commented on I want to be a Journey Programmer Again   hexhowells.com/posts/jour... · Posted by u/hexhowells
pyman · 8 months ago
Feels like we're heading towards a world where computer languages disappear, and we just use human language to tell machines what to do. Kinda like how typewriters got replaced by computers in the 80s. Back then, people spent so much time making sure there were no typos, they'd lose focus on the actual story they were trying to write.

Same thing's happening now with code. We waste so much time dealing with syntax, fixing bugs, naming variables, setting up configs, etc, and not enough time thinking about the real problem we're trying to solve.

From Assembly to English. What do you reckon?

knutwannheden · 8 months ago
I reckon that while my programming has become more productive with LLMs, it has at the same time gotten a bit more frustrating and boring.

I think it is difficult to know in advance when the LLM will do a reasonable or good job and when it won't. But I am slowly learning when and how to use the tools while still enjoying using them.

knutwannheden commented on New iMac with M4   apple.com/newsroom/2024/1... · Posted by u/tosh
WillPostForFood · a year ago
Right now, the Apple computer lineup is totally out of alignment for me. The iMac is too small and the laptops are too big. I'd like a minimum 27" display for the iMac, maybe 31". For a laptop, give me something more portable, like the old 2 pound, 12" MacBook.
knutwannheden · a year ago
Changing screen sizes appears to be a very common theme for Apple. That way they can a few years later re-introduce the old screen sizes as the best invention since sliced bread. Very annoying. I would also have liked to see a 24"+ model.
knutwannheden commented on Fury – Fast multi-language serialization framework powered by JIT and Zero-copy   github.com/alipay/fury... · Posted by u/chaokunyang
knutwannheden · 2 years ago
Interesting. I will be curious to see how it stacks up against Jackson Smile, both in terms of features and performance. Since it appears to support both polymorphism and back-references, it looks like it already has some advanced features.
knutwannheden commented on Choropleth maps with ggplot and R   socviz.co/maps.html... · Posted by u/nateb2022
snowpid · 3 years ago
a python alternative for ggplot (except mapping) is plotnine https://plotnine.readthedocs.io/en/stable/index.html
knutwannheden · 3 years ago
My preference is Altair: https://altair-viz.github.io/
knutwannheden commented on Infinite AI Array   ianbicking.org/blog/2023/... · Posted by u/adrianh
polalavik · 3 years ago
tech is not about asking about the consequences of what you are doing, it's about asking if it can be done at all /s (but sometimes not /s)
knutwannheden · 3 years ago
While I think the paraphrased Jurassic Park quote can be very funny at times, I don't really agree with the statement. But I assume you were being sarcastic.
knutwannheden commented on IvorySQL: Open-source Oracle-compatible PostgreSQL   github.com/IvorySQL/Ivory... · Posted by u/flymetothemoon
rst · 3 years ago
Also, their docs leave me wondering about the level of Oracle compatibility they're claiming. Their page on the subject, https://www.ivorysql.org/docs/compatibillity_features/hierar... , lists a bunch of immediate sore points -- date types and functions, the CONNECT BY query syntax, etc. But there are other things Oracle supports that are not listed, and still potentially serious stumbling blocks -- "fast" (incremental) automatic refresh of materialized views, IGNORE NULLS in window functions, and so forth.

Oddly, I'd take their compatibility claims more seriously if they were more clearly up-front about the limits.

knutwannheden · 3 years ago
Am I one of the only developers who actually likes the CONNECT BY queries? Often I think they are a very succinct alternative to recursive CTEs.
knutwannheden commented on Unovis: Data visualization for React, Angular, Svelte, TypeScript, JavaScript   unovis.dev/... · Posted by u/caxtine
eatonphil · 3 years ago
The thing I've wanted is a visualization library that also comes with the UI controls for configuring graphs: picking the graph type, picking the fields, picking the labels, picking the aggregation, axis settings, etc.

Almost no one is implementing libraries that do this. Everyone just keeps building "low-level" graph libraries that leave application developers to build up (in my case) crappy and inflexible configuration UIs.

knutwannheden · 3 years ago
My personal favorites are Altair (Python/VegaLite) and Observable Plot. The latter just released a new version with GeoJSON support.
knutwannheden commented on Cache invalidation really is one of the hardest problems in computer science   surfingcomplexity.blog/20... · Posted by u/azhenley
jvm___ · 3 years ago
This is a UDP joke.

I don't care if you get it.

knutwannheden · 3 years ago
I still didn't get it.
knutwannheden commented on CS quotes found while browsing Notepad++'s code   github.com/notepad-plus-p... · Posted by u/prvt
knutwannheden · 3 years ago
Would be interesting to see what GitHub Copilot makes of this.

u/knutwannheden

KarmaCake day36October 10, 2018View Original