Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jpc0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
57 ms
·
361.
▲
by
jpc0
2y ago
I seem to remember a linux kernel dev quiting and not being able to specify exactly what you say this wrapper should abide by as being a contributing factor. If those specifications were written down clearly enough then this dev wouldn'
362.
▲
by
jpc0
2y ago
His journey tracks exactly what I've heard from windows development. If you need more than winforms use avalonia because Microsoft cannot create a viable UI toolkit... Which is extremely funny concidering the article we are having a di
363.
▲
by
jpc0
2y ago
> the Windows kernel and win32 libraries written in C and the application in C++ To my knowledge the kernel and win32 is in fact written in C++ and only the interface has C linkage and follows C norms. So this error occurred going C++ &g
364.
▲
by
jpc0
2y ago
Seeing as rust has no stable ABI and likely never will. How would you provide the API in rust, also in golang, also in .NET, and swift, and Java, and whatever other language you add without doing exactly what Win32 does and go to C which ha
365.
▲
by
jpc0
2y ago
The reality is I can just target winforms on windows, or GDI if I need that. To open a window there is exactly one way if I want it. To open a window on Linux do I call into X11 or wayland? Do I need to also provide a DRM layer for incase i
366.
▲
by
jpc0
2y ago
> ... Google up to 2022 where for more than a decade nothing else came close in value prop. Maybe X now has an even better model with more investment ... I was very confused at this point because I haven't really seen X as a competi
367.
▲
by
jpc0
2y ago
On topics where humans spend their entire life studying I don't think you would be able to convince me an LLM is accurate unless you yourself are such an expert and your expertise is corroborated by other experts.
368.
▲
by
jpc0
2y ago
People are oblivious, I can assure you of that. They look at Joe and see the same Joe they have been seeing their entire life, when in reality that Joe ain't there anymore, he's about to "step out"...
369.
▲
by
jpc0
2y ago
How long ago was this? I seem to remember not having too many issue with useEffect and context on this. Maybe the issue is you wanted to implement it in a singular react component when in reality you should be treating it like an other stat
370.
▲
by
jpc0
2y ago
I had a similar issue at one point but if I remember correctly I just had to have my webserver send the header section without closing the connection. Usually things would just get streamed through but for some reason until the full header
371.
▲
by
jpc0
2y ago
That statment was qualified by: > While I'm far from a cmake/cpp expert, this is a non-issue with most modern languages: you just pip install, cargo add, npm install, go get etc. Which I also find fundamentally wrong because mo
372.
▲
by
jpc0
2y ago
The fact that by default array access is bounds checked in Rust and by default it isn't in C++ disproves that. I think you would have a hard time convincing the C++ standards committee to put a checked container in the standard, maybe
373.
▲
by
jpc0
2y ago
I understand that entirely, a link list is a non-contiguous heap based data structure. What I am saying is if you store a reference to an item in a Vec or an index to an item to a Vec it is an implementation detail and looking up the refere
374.
▲
by
jpc0
2y ago
I'll happily look at a benchmark which shows that the size of the index has any significant performance implications vs the work done with the data stored at said index, never mind the data actually stored there. I haven't looked
375.
▲
by
jpc0
2y ago
> Array based data structures crush pointer based data structures in performance Array[5] And *(&array + 5) generates the same code... Heap based non-contiguous data structures definitely are slower than stackbased contiguous data st
376.
▲
by
jpc0
2y ago
I definitely don't blame you for missing it. I found it by looking at the go package because they claimed they are statically linking there.
377.
▲
by
jpc0
2y ago
An unchecked dereference should also throw up flags during review in a C/C++ codebase. I didn't assume that nobody would make mistakes. My argument has always been that you use a language like C++ where needed. Most of your code s
378.
▲
by
jpc0
2y ago
Seeing as it's Christmas Eve and I has nothing better to do... Duckdb own documentation says the C++ API is internal and you should use the C API[1] The makefile also has a 'bundle-library' option which seems to be exactly wh
379.
▲
by
jpc0
2y ago
You seem to be agreeing with me then, weird take to do it while sounding like you disagree... As I said, you can make the argument C++ build systems are no good. However the argument originally made is that C++ the language caused these iss
380.
▲
by
jpc0
2y ago
Is your argument that rust with panic if you are a bad programmer and C++ says its Ub of you are a bad programmer? That's just fundamental difference of opinion, Rust isn't designed for efficiency, it's designed for safety fi
381.
▲
by
jpc0
2y ago
CMake, the defacto if not standard build system, when correctly setup, does all this for you. Your argument is along the lines of "the maintainer of X rust package didn't setup cargo correctly and it's impossible to include i
382.
▲
by
jpc0
2y ago
I didn't directly interpret it a cross-platform but more as (x) platform... Asin variable x which is not Apple... Which is semantically the same I guess but not entirely. Just to add to the different ways that that exact grouping of le
383.
▲
by
jpc0
2y ago
You mean this: https://react.dev/reference/react-dom/client/createRoot How you bundle react is left as an exercise to the reader but the data is still there?
384.
▲
by
jpc0
2y ago
Build a router and set inner HTML. This would maybe be a few hours of work if going from a static site to a SPA was actually in scope. Strip headers from the current pages and now serve the body as content from an API. You don't need y
385.
▲
by
jpc0
2y ago
Or Amazon can use their current actuaries/data scientist to flag any outliers and only review those, if your "valuation" is 1% off that's just cost of doing business when your scale is massive. This isn't a "ev
386.
▲
by
jpc0
2y ago
You seem confused. We replace devices every 5 years about. We generally don't need to touch them between replacements, that includes the current HP units we are running which costs significantly less than a MacBook. The difference is i
387.
▲
by
jpc0
2y ago
> Mac captures those looking for lower TCO... Having owned Macs and supported Macs in IT... Both Dell and HP had lower TCO and that's only more true now since I can still extend the life of the Dell/HP/Lenovo if need be wi
388.
▲
by
jpc0
2y ago
We seem to agree. I will always try to convince people against mindless media like ticktok, well unless it's in their life goals to be an influencer but that may also be an issue... Other cauaes though, sure I don't mind if you do
389.
▲
by
jpc0
2y ago
I don't disagree with you. But I have also opened screentime on some of those people with "no time" and it has 15+ hours on ticktok this week... There are legitimately busy people and then there are people who wish they could
390.
▲
by
jpc0
2y ago
You are awake for at least 16 hours of the day, you telling me you cant find 4 hours a week to read a paper? So 4/112 hours or around 3.5% of your week... I guarantee thats more time than most people will spend teaching their kids any
More ›