Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
halayli
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
361.
▲
by
halayli
10y ago
But arr != &arr even though they have the same value. #8 applies to arr (P), but in the post OP is using &arr which is a ptr to array[x] and doesn't apply to it.
362.
▲
by
halayli
10y ago
this is undefined behavior. &arr + 1 can overflow. There's no guarantee &arr isn't near memory end boundary. &arr + 1 is converted at compile time to rbp - X where X is an integer determined by the compiler similarly t
363.
▲
by
halayli
10y ago
you can trust their skills and ability, but trusting their intentions shouldn't necessarily follow.
364.
▲
by
halayli
10y ago
One benefit of testing is that it can highlight whether your abstractions make sense. If you need to pull in the world to test a small module then probably your dependencies are not right and what you thought was a unit turns out to be more
365.
▲
by
halayli
10y ago
You want me to trust my life with a source code that uses zmq? no thanks.
366.
▲
by
halayli
10y ago
Why not use clang's PCH (precompiled headers) feature? http://clang.llvm.org/docs/UsersManual.html#precompiled-head...
367.
▲
by
halayli
10y ago
It takes time (few months) and plenty of iterations to create the mental map and learn the proper patterns. I suggest to create a simple app and iterate/refactor until you feel comfortable that you got it. Boilerplates are good but t
368.
▲
by
halayli
10y ago
github.com seems to be down because of this.
369.
▲
by
halayli
10y ago
What evidence do they have that it's a state sponsored attack?
370.
▲
by
halayli
10y ago
This increases your attack surface area. Any breach to one of those machines and the attacker can start doing mitm attacks. It also limits auto scalability assuming newly provisioned machines require manual approval of priv key distribution
371.
▲
by
halayli
10y ago
Wouldn't this require private keys to be sprinkled on all machines running it to inspect the traffic?
372.
▲
by
halayli
10y ago
It doesn't need a lot of thinking that I was referring to programming languages.
373.
▲
by
halayli
10y ago
You're in denial. Javascript is everywhere nowadays. It has become the English of languages. It's not my favorite language but it has improved extensively. No one wants to maintain a web app, mobile app, and desktop app separately
374.
▲
by
halayli
10y ago
Your page can be very fast and uses minimal resources and is hosted in a good place. But you always gotta watch out for proximity to user, time to first byte and dns resolution time. Perceived speed is highly affected by those. It took 2 se
375.
▲
by
halayli
10y ago
I feel you're trying to defend go without much objectivity. Such performance gap needs to be addressed properly instead of saying it's pretty good already. It doesn't sound right if go takes 5 hours to finish csv parsing job
376.
▲
by
halayli
10y ago
OO paradigms are not magical and they have a learning curve. They can look simple and obvious but knowing how to abstract your problems using these techniques is not simple and it's what differentiates a good programmer from a bad one.
377.
▲
by
halayli
10y ago
What about mental fatigue? The more you workout your brain the more it needs to rest. How would you like your brain to tell you that it needs to rest other than feeling fatigue? I find myself consistently productive over long spans without
378.
▲
by
halayli
10y ago
memcpy is outside the territory of C++. it doesn't fall under the language specification. it's as simple as that. If they go this route what stops them from defining assumptions to system calls?
379.
▲
by
halayli
10y ago
but memcpy outside the C++ scope is what I meant. The C++ committee cannot do much about memcpy but they can introduce a new memcpy with a different name that has better ub support.
380.
▲
by
halayli
10y ago
memcpy behavior is not part of C++ standard. The C++ standard is only concerned with formally defining the ability to use it and the header name to include.
381.
▲
by
halayli
10y ago
there's no license for kqueue's interface or netgraph, and many other great interfaces. but they decide to create square wheels and not leverage from errors that others have made before them.
382.
▲
by
halayli
10y ago
I've always been very impressed by Sun's talent, the team was . And thank you for dtrace! :) If only Linux community / leaders would be less arrogant and adopt technologies from Solaris/BSD that are order of magnitude be
383.
▲
by
halayli
10y ago
Looking at dtrace, fishwork, zfs and Solaris (imo was the best OS technologically speaking) it's interesting to see how strong and innovative its engineering team was while the business was just going down. How did that happen? How can
384.
▲
by
halayli
10y ago
It seems you're disagreeing with yourself.
385.
▲
by
halayli
10y ago
This article is coming from a frustrated developer and lacks any scientific evidence. The frustration (understandably) is coming from the overwhelming complex new features and patterns that barely a compiler can understand. C++11 onward rev
386.
▲
by
halayli
10y ago
you can do x = malloc(sizeof x + <variable_length)) x->zero_array points to the variable_length. The advantage is that you get contiguous memory access and do a single malloc. As opposed to: x = malloc(sizeof x) x->ptr = malloc(&
387.
▲
by
halayli
10y ago
and then the author will remove it one day. :)
388.
▲
by
halayli
10y ago
I bet a package manager will follow it. redis install moduleX and then we'll have lib and target dependencies.
389.
▲
by
halayli
10y ago
with the risk of sounding cynical here, but it feels this is a solution from people that aren't familiar with what the problem is about, ending up in optimizing the wrong areas. Few observations here: * using udp means you don't c
390.
▲
by
halayli
10y ago
Goroutines use segmented stacks that allows them to grow dynamically as needed. so 4k goroutines != 4gb of ram. They currently start at 8k and grow as needed but copies are incurred to keep it contiguous. In lthread I preallocate fixed size
More ›