Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jpc0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
541.
▲
by
jpc0
3y ago
... really matter are algorithmic complexity ... This is not entirely true either... Measure. There are many cases where the optimiser will vectorise a certian algorithm but not another... In many cases On^2 vectorised may be significantly
542.
▲
by
jpc0
3y ago
In my mind this is breaking down the problem into a relevant data structure and algorithms that operate on that data structure. If for instance you used a tree but were constantly looking up an index in the tree you likely needed a flat arr
543.
▲
by
jpc0
3y ago
Not something I've looked deeply in to but would it not make sense to just have a single instance of these SaaS products across your entire range of products? If you are seperating them for accounting reasons, maybe chat to an actual a
544.
▲
by
jpc0
3y ago
Likewise this is getting easier with the auto keyword now being sugar for templates when used in function arguments and return values
545.
▲
by
jpc0
3y ago
Not to be oblivious but what is the attack vector here versus attacking the router on the other end of the cable which has known vulnerabilities? How much L3+ logic is in the NIC? Pretty sure by the time a packet hits the NIC it is encrypte
546.
▲
by
jpc0
3y ago
> Bugs tend to disappear on me when I change the optimiser flags or run the thing under gdb though A lot of that shouts UB or compiler bug to me. I don't get this in my code unless there is some UB I missed. Unfortunately there are
547.
▲
by
jpc0
3y ago
You clearly have no idea how complex routing is if that is your take on this.
548.
▲
by
jpc0
3y ago
Yeah goroutines are a pretty high level abstraction but they are definitely closer in concept to green threads than to coroutines. You can run a C++ coroutine on a seperate thread but you effectively need to build all the task handling logi
549.
▲
by
jpc0
3y ago
Except goroutines will absolutely spawn a thread which a coroutine by definition wont. Goroutines are parallel, coroutine are concurrent. Those are not the same thing. Coroutines co-operatively yeild to other coroutines. Parallel constructs
550.
▲
by
jpc0
3y ago
I mean goroutines are not exactly coroutines nor are they threads they are somewhere in between. And its pretty easy to use the same workflow as goroutines in C++ using std::thread and a concurrent queue implementation, tbb has a decent one
551.
▲
by
jpc0
3y ago
Sounds like a story I've heard about a conveyer belt and a large fan. I like simple solutions to simple problems
552.
▲
by
jpc0
3y ago
Many OSS contributors likely don't have "fly to distant country for mandatory meeting" money. You are excluding a ton of contributors based on geography and income. It's not common that I find this line actually decent b
553.
▲
by
jpc0
3y ago
To give some feedback. I tried your prompt and the above approach and it took me about 45 minutes of putsing around to get a result I am happy to begin iteration on. Effectively: I have an 80bit byte array representing a timestamp struct co
554.
▲
by
jpc0
3y ago
Are you happy with the C code generated there? I'm not sure there isn't a buffer overflow in the vector_decode code he showed there, likewise I don't see any error checks on the code and I am not familiar with the sqlite api
555.
▲
by
jpc0
3y ago
I will definitely try this out when I have time later in the day. There is some code I would really prefer not to write that is a decent test case for this and won't expose company code to GPT. Will give feedback when I am done. Maybe
556.
▲
by
jpc0
3y ago
Could you maybe give me an example of what is concidered an optimal use of LLMs. Maybe a prompt to GPT
557.
▲
by
jpc0
3y ago
I was curious and yes I was mistaken.
558.
▲
by
jpc0
3y ago
My guess is that this was generated using GPT4? Free GPT I get https://chat.openai.com/share/f533429d-63ca-4505-8dc8-b8d2e7... which has exactly the same problem as my previous example and doesn't consider the str
559.
▲
by
jpc0
3y ago
https://chat.openai.com/share/c8c19f42-240f-44e7-baf4-50ee5e... https://godbolt.org/z/s9Yvnjz7K I mean I could write the algorithm by hand pretty quickly in C++ and would follow the exact same tho
560.
▲
by
jpc0
3y ago
I did exactly that and found it lackluster for the domain I asked it for. And most use I've seen on it realistically a good LSP covers. Or to put it a other way. It's no good at writing algorithms or data structures ( or at least
561.
▲
by
jpc0
3y ago
Is it common for you to write the header file to say a BST and the compiler didn't rightfully throw an error? That's what you are asking the LLM to do, you are generating code not searching for an error condition. The parent comme
562.
▲
by
jpc0
3y ago
I think from an exposure point of view, I'm less likely to worry about the software side of my physical security being exploited that the actual hardware side. None of the points you make are relevant since I have yet to see any softwa
563.
▲
by
jpc0
3y ago
I'm not for or against in this case. I'm anti what Redis the company is doing but I don't give a crap otherwise. Are we really counting contribution based on LoC? Haven't we over the decades decided that isn't valid
564.
▲
by
jpc0
3y ago
Reasonably sure neither of those would be copyright infringements in any case. Drawings of apples cannot be copyrighted, copyright requires at least some form of originality... And this is the one that might differ based on jurisdiction but
565.
▲
by
jpc0
3y ago
For some things there is a lot of nuance lost in just writing. The unknowm unknowns. There has been a lot of times where I am showing someone new to my field something and they stop me before I get to what I thought was the "educationa
566.
▲
by
jpc0
3y ago
I figured that but agree with you. I generally wouldn't use that meaning but it's not like I'm going to fight about it being used.
567.
▲
by
jpc0
3y ago
Could you please let us know what the misunderstood meanings for those words are. I legitimately only know one meaning for each of those and from a quick look in a dictionary my understanding of those words seem to stem from the original me
568.
▲
by
jpc0
3y ago
Your complaint seems more like a failing legal system than unnecessary surveillance. Legitimately if an investigator put a hard drawn sketch through facial recognition and that was even remotely allowed into evidence by the court then the s
569.
▲
by
jpc0
3y ago
> when I reverted to using regex Begrudgingly I hope... If you replaced 4000LoC with a regex that regex scares me...
570.
▲
by
jpc0
3y ago
No. I think users feel the other options are better due to familiarity. I generly find modern interfaces clunky and really inefficient to use and this iescoming from a younger person who grew up in win 98+. After I actually spent some time
More ›