Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jws
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
721.
▲
by
jws
11y ago
But malloc() doesn't always signal failure with a null in many modern systems. It will happily return you a region of unpopulated virtual address and then SIGSEGV you when you try to use it. (With overcommit). I think we can leave VLAs
722.
▲
by
jws
11y ago
If they decided to hand out flying ponies… • blocks are pretty spiffy. • nested functions, by which I mean I don't need access to the parent's variables, I just want to tuck this little function inside the namespace of my existing
723.
▲
by
jws
11y ago
I've become a heavy user of a number of clang extensions, __attribute__((cleanup)) __attribute__((overloadable)) … are now indispensable to me. Cleanup I use for both object lifetime management (when it fits that model), and
724.
▲
by
jws
11y ago
Acer Cloudbook 14" 2G ram, 32G eSSD. N3050 dual core Braswell. $189 at Walmart. (Careful: it is the bait and switch model. Do not believe the "in stock" indication on the web site. I went to pick one up at four different stor
725.
▲
by
jws
11y ago
There are keys which are simply used for tamper reduction. If you buy an RV in the United States, it will have lots of external compartments storage. These will likely all have the same key, as every other RV on the lot. Furthermore you can
726.
▲
by
jws
11y ago
Thanks, I appear to be clear of .encrypted files. The good of this mess is that I realized I only had one Time Machine backup going on that machine. I had turned off the remote backup a month ago while shoving backups around on the remote
727.
▲
by
jws
11y ago
x86 is little endian. The internet protocols are mostly big endian. It matters. The good part is you catch your mistakes. Developing networking code on a big endian machine can get you a surprise later.
728.
▲
by
jws
11y ago
Just an anecdatum: I got infected by this yesterday when I installed Transmission to download a Debian install CD. When I read about this at MacRumors I checked and had the kernel_service process running and the two hidden files hiding in L
729.
▲
by
jws
11y ago
In my own TCP/IP stack I have defined things like IPv4 addresses and port numbers as unions instead of integers, and given them functions to convert to host order and back. e.g. typedef union { uint32_t net_order;
730.
▲
by
jws
11y ago
ATMs are good comparison. They are left unattended but photo document themselves and their environment. If you attack an ATM it will provide the evidence for a prosecutor to charge you.
731.
▲
by
jws
11y ago
Every time an asshole recklessly endangers the occupants of a self driving car, the car will have recorded the entire event. They should send these to a central clearinghouse and after a certain threshold hand them over to the appropriate p
732.
▲
by
jws
11y ago
Perhaps their wifi chip can not operate outside FCC limits? The flashing question comes up for devices which can be made to operate outside the frequencies and power levels allowed by the FCC.
733.
▲
by
jws
11y ago
Generally, processes in IOWait are not running, they are sitting around in a queue waiting for their data. Anyone waiting on the process is feeling pain, but it isn't eating any CPU so it comes down to what you want the metric to mean.
734.
▲
by
jws
11y ago
Good news in the article, apparently asprintf is scheduled for the next POSIX standard. I wonder how one sees what is in the next POSIX standard, it would inform my choices of what I use. I'll use something that works on all my platfor
735.
▲
by
jws
11y ago
That appears to be free repositories when you sign up for the $24/month personal plan, according to their Pricing page. That is a barrier to many people. Edit: Hmm, there is also a page that talks about free repositories, but it requir
736.
▲
by
jws
11y ago
surprising locking behaviors – there is a phrase to strike terror into the heart of any sufficiently experienced programmer.
737.
▲
by
jws
11y ago
Where lightweight is: • About 13k source lines. • builds in 1.25 seconds on my Core i7 3770 from a few years back. • 400k executable when stripped • Dynamic links to the usual suspects plus libedit, libtinfo, and libbsd. Not bad. The memory
738.
▲
by
jws
11y ago
It has to do with the high voltage and the impact of voltage loss. † I've accumulated a lot of stuff I'm glossing over at the end. Let's consider a 1 square millimeter cross section wire. Your power lines will be bigger, but
739.
▲
by
jws
11y ago
1) GPS is a weak signal and can be jammed or spoofed. 2) Your satellite imagery might not be accurately aligned to the coordinated system. If you want to land on a little flat spot, then doing it visually will work even with misaligned imag
740.
▲
by
jws
11y ago
Energy breakthrough exhaustion. There are just too many breathless press releases and articles and they mostly drift away to join the aggregate body of scientific knowledge. Way outside my field here, but this one doesn't address cost
741.
▲
by
jws
11y ago
…f.lux being free… Their web page still says "f.lux is patent pending." Apple's "Night Shift" is great news for f.lux. If f.lux can get their patent then the billion dollar target is square in their sights. I have
742.
▲
by
jws
11y ago
Brushes are fine.
743.
▲
by
jws
11y ago
They aren't so bad. I live part of the year in a seagull rookery. If you carry a stick that reaches above your head they can't hit you. If you are working outside with an aggressive individual interested in you, you can time how l
744.
▲
by
jws
11y ago
$30 android tablets with wifi are a pretty good option for being connected. I have a few obsolete iPads with cellular modems paid up which I "loan" to people who need them. Modern tablets on wifi or even obsolete cellphones on wif
745.
▲
by
jws
11y ago
doteasy is serving a 200k "exceeded" page to protect themselves from serving about 50k of page? Maybe it's marketing, but "Look! I'll randomly embarrass you in front of your readers!" isn't much of a selli
746.
▲
by
jws
11y ago
Not everyone can afford cellular or wired Internet. Municipal wifi raises the floor and keeps the most vulnerable connected.
747.
▲
by
jws
11y ago
Apparently a (uint32_t) shifted by 32 is license to become completely insane. int main(int argc, char **argv) { uint32_t x = (uint32_t)0x12345678<<(uint32_t)32; printf("x<<32 = %x\n", x ); } (Almost
748.
▲
by
jws
11y ago
The algorithm sparsely uses 512MB of virtual address space for its allocation and caches. For each of about 40 sizes, it keeps an array of fixed size blocks, plus a bunch of per thread and per CPU caches. In a 32bit world, taking 1/4 t
749.
▲
by
jws
11y ago
My interest lies orthogonally to this… I wonder how much effort is required to port the runtime to a non-unix, non-c-standard-library API. (also not Windows, in case you were thinking that.)
750.
▲
by
jws
11y ago
I don't think adding a GPLv3 dual to an MIT license changes much. You can derive a work from MIT licensed code and license your work with a more restrictive license. You would still need to reproduce the MIT license alongside your GPLv
More ›