Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nyc_pizzadev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
nyc_pizzadev
5y ago
The select() was not interrupted in a traditional sense. It looks like a special windows API was used (QueueUserAPC) which allows a callback to be called in user space while blocked in certain kernel calls. My guess is that when used normal
62.
▲
by
nyc_pizzadev
5y ago
There is an array cast [] in there. So dereferencing that using a plain * takes you back to the original double pointer.
63.
▲
by
nyc_pizzadev
5y ago
Not sure I buy this. The key difference between these algorithms and the brain is in the understanding of language. The language we speak and think with conveys meaning. These algorithms have no idea what the meaning of any text is, rather,
64.
▲
by
nyc_pizzadev
5y ago
The point of the magic values are that these values are eventually checked. This should break out of these kinds of optimizations. Edit note: allocators are user space libraries (stdlib) and not part of the C spec. Use-after-free is extreme
65.
▲
by
nyc_pizzadev
5y ago
> they can very easily fill in the magic numbers too Right, recreating the magic does side step this defense. The context for software security these days is defense in depth and not something like “total defense” anymore. In this case,
66.
▲
by
nyc_pizzadev
5y ago
The pointer is read by the allocator, which then performs its own set of writes and management. I think you guys might be confusing stack memory and dynamic memory here. Interestingly enough, if you were to incorrectly use stack memory in t
67.
▲
by
nyc_pizzadev
5y ago
> I suspect most have a false sense of security as the compiler will elide all stores that are happening in a struct about to be freed The magic field is reset before returning the pointer to the allocator, so it’s definitely a live writ
68.
▲
by
nyc_pizzadev
5y ago
A handful of C projects I have seen use magic numbers in allocated structs to prevent use-after-free and other memory bugs[0]. Basically, in this case, when the ref count hits zero and the struct is freed, the magic is zeroed and any furthe
69.
▲
by
nyc_pizzadev
5y ago
Every hash table implementation I have done I use an RB tree for each bucket. This way if the bucket is loaded with hundreds or thousands of elements, you aren’t penalized too badly.
70.
▲
by
nyc_pizzadev
5y ago
Having worked in a few open source based commercial businesses, I think the donation model can be tough and unpredictable. The only time I have seen it work is when businesses have commercialized an open source project and then give you a d
71.
▲
by
nyc_pizzadev
5y ago
Isn’t there already a popular Magneto plugin for Varnish called Turpentine? Seems odd they chose the same name...? https://www.nexcess.net/magento/plugins/turpentine/
72.
▲
by
nyc_pizzadev
5y ago
This elevator crashed down the shaft crushing this poor guy in the door. So sad... https://nypost.com/2019/08/22/video-shows-moment-man-crushed...
73.
▲
by
nyc_pizzadev
5y ago
I am a bit familiar with Autonomy, but I don’t know the exact specifics. They were in the software license business, so if I were to speculate, they would get a new channel partner and then forward them 250 server licenses, book the full re
74.
▲
by
nyc_pizzadev
5y ago
Some details here: https://www.justice.gov/usao-ndca/pr/former-autonomy-cfo-sen... > The evidence at trial demonstrated that for more than two years prior to the sale, Hussain, 55, a citizen and resident of the
75.
▲
by
nyc_pizzadev
5y ago
Well, we are currently in the computer age which looks like it will be equal if not bigger than the previous industrial age. I believe when this paper was written, the computer age was in its infancy and the world was post industrial. As lo
76.
▲
by
nyc_pizzadev
5y ago
Had this problem myself, was never able to just fall asleep at night, it was always a struggle. Napping, never, that made no sense. I would usually fall asleep around 2AM, struggle to get up at 9AM, and would do catchup sleep until noon on
77.
▲
by
nyc_pizzadev
5y ago
My first C intuition would be defining this value as a macro. If I was in C++, then a const would make sense.
78.
▲
by
nyc_pizzadev
5y ago
Right, that would be war. My understanding is that the gov has more covert methods... We hunted enemies before in other nations with some success.
79.
▲
by
nyc_pizzadev
5y ago
I seriously think one solution to this problem is for the US gov to start designating some of these gangs as something similar to enemies of the state and start taking military action against them. If there were serious repercussions for th
80.
▲
by
nyc_pizzadev
5y ago
I don't think Rust is the evolution of C. Its a nice thought, just like I like to think im the evolution of [famous well known person]. C++ was the evolution of C and so was Java, but they both turned out to be their own things and C k
81.
▲
by
nyc_pizzadev
5y ago
Definitely a strong use case for a caching proxy like Varnish or Nginx. The post describes using Redis as an application cache which means your application needs custom logic. A cache lookup before going to S3, and then it needs to write ba
82.
▲
by
nyc_pizzadev
5y ago
Wouldn’t this be akin to a military based government?
83.
▲
by
nyc_pizzadev
6y ago
Agreed, came here to say the same thing. Would be interesting to see how they stack up against each other. Both are highly evolved modern languages that make pretty much the same claims.
84.
▲
by
nyc_pizzadev
6y ago
Shouldn’t this be Rust vs C++? C++ has a lot more parallels to Rust. Both are big, complex, and safe languages that can tuned for high performance. Infact, I would like to see more comparisons of Rust and C++ in the future.
85.
▲
by
nyc_pizzadev
6y ago
I have been house hunting lately and my agent works for Compass. The website experience kind of sucks. Horrible mobile experience, lots of UX glitches, it’s just annoying to use. In fact, half the time we are using StreetEasy to look at lis
86.
▲
by
nyc_pizzadev
6y ago
Take a look at vm.max_map_count. A lot of systems have that set artificially low and that will force a memory allocator to fail and return NULL. I can confirm this is the case for jemalloc. Also, on Linux, only 48 of 64 bits are available f
87.
▲
by
nyc_pizzadev
6y ago
Same is happening in NYC. Renewals are either no change or seeing an increase while move ins are seeing discounts. My advice is to move out. You will either get a nice discount somewhere else or force your current landlord to actually compe
88.
▲
by
nyc_pizzadev
6y ago
The RQ-170 is another big one, and very recent too. https://en.m.wikipedia.org/wiki/Iran%E2%80%93U.S._RQ-170_inc...
89.
▲
by
nyc_pizzadev
6y ago
The NYC subway system has me concerned. Not only is it filthy, but there is zero air circulation. This means that anything airborne will stay put, possibly in high concentration for a long time. Given the amount of people going thru these s
90.
▲
by
nyc_pizzadev
7y ago
What about a headache and/or body aches? Been having mild symptoms of this for the last week+ and I'm in a corona hotspot (NYC). Smell seems to be ok, but I'm not sure of a good way to test other than smelling something stron
More ›