Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PeCaN
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
85 ms
·
751.
▲
by
PeCaN
11y ago
Alright, I'll bite, because you make some good points. Having reconsidered, I'm not entirely sure I'm in the right here anyway. > using bits undefined behavior intended to account for platform differences to actually disto
752.
▲
by
PeCaN
11y ago
> Randomness hardware? There are already perfectly good PRNG routines available as used by currently available strong encryption. Yeah. How do you seed those with a good source of entropy? That's what RDRAND etc are for.
753.
▲
by
PeCaN
11y ago
You're right, I misread and misinterpreted that! Thanks. Somehow I wasn't thinking and didn't realize that `t` aliases whatever was passed as `p`, and dereferencing a non int or char pointer would be undefined there.
754.
▲
by
PeCaN
11y ago
That'd still be defined though. It'd just be defined to set the first sizeof(int) bytes of `* p` to 1. ;) void * and (char * ) can alias to anything and the compiler has to make it work. Of course if you pass a pointer to a type s
755.
▲
by
PeCaN
11y ago
Yes, but note that the assignment occurs after the NULL check. If the grandparent did mean to put it before, then the code snippet would be undefined, but it wouldn't be surprising either.
756.
▲
by
PeCaN
11y ago
I'm gonna rant for a bit. I see posts like this from time-to-time, and while they're certainly well-meaning there's a good reason why you're not writing the C standard. :-) > compiler writers take unjustified libertie
757.
▲
by
PeCaN
11y ago
Sometimes he does quite good in-depth articles (such as his Talos Workstation preliminary benchmarks[1]) but mostly it's a nice site to avoid having to scour mailing lists to hear about cool new stuff. 1. http://www.phoronix
758.
▲
by
PeCaN
11y ago
> If you have the source then you can see what it does. What if it exploits a compiler bug to do something different than it looks? What if the compiler recognizes the code and instruments it with its backdoor? Sure, GCC probably doesn&#
759.
▲
by
PeCaN
11y ago
Well, for one thing, it's not offensive. Attacking minorities, genders, and/or sexual preferences can be offensive. A popup calling out Debian on their ridiculous version lag is not. So... who cares, really.
760.
▲
by
PeCaN
11y ago
FFS, it's just reservation.reservation_name, it's not like he's parsing HTML with regular expressions or something. Like... big deal.
761.
▲
by
PeCaN
11y ago
GreenArrays's main claim to fame is that it's a fully asynchronous architecture (no central clock). Oh, and it's from Chuck Moore (the Forth guy and kinda the Mike Pall of hardware design). I had no idea Lens targets it. That
762.
▲
by
PeCaN
11y ago
It doesn't. How does Apple's A9X compare to a Xeon E7? RISC-V is excellent for hobbyist boards, mobile CPUs, high-efficiency low-performance servers, as a base for DSPs, high-efficiency network equipment, etc. Everything from the
763.
▲
by
PeCaN
11y ago
Yeah, if only there was a well-supported open-source OS that is generally regarded as reasonably secure and has been ported to pretty much everything under the sun. It would be nice if it ran the GNU userland for easy development and had a
764.
▲
by
PeCaN
11y ago
I'd debate that a bit. Personally I hardly had to ask any questions when I was a beginner, and I'm not even particularly good with Google. Relevant vocabulary can be picked up from tutorials quite quickly. Though Google does seem
765.
▲
by
PeCaN
11y ago
Because they're usually poorly phrased with no effort put into them at all and generally it's fairly clear the asker hasn't even checked if the question is asked before. All the basic questions have pretty much been answered
766.
▲
by
PeCaN
11y ago
Disabling JS on mobile is a godsend though. I keep JS disabled on my phone[1] most of the time and it's generally just a more pleasant experience. I don't even have a particularly slow phone (HTC One M8, I guess it's a couple
767.
▲
by
PeCaN
11y ago
To the best of my knowledge, VIA CPUs have no secure boot, management engine, or any other proprietary secondary hardware. Coreboot supports many VIA CPUs and motherboards[1], though it's unclear if it uses any binary blobs the FSF see
768.
▲
by
PeCaN
11y ago
I run it as a desktop OS on a Lenovo G700 and those all work fine. Hardware support isn't as complete as Linux but it isn't bad at all either. Chances are anything that's older than 2-3 years will work out of the box, anythin
769.
▲
by
PeCaN
11y ago
PS3 did—I believe PS4 is not nearly as heavily modified[1]. It is certainly locked down though, at least after the early PS3s where you could, say, install Linux and build a HPC cluster[2]. 1. Mostly from people who've hacked it; http
770.
▲
by
PeCaN
11y ago
What would they gain though? NT is a pretty good kernel with very broad hardware support. If anything, they'd just make NT fully POSIX-compliant. They'd get the same benefit with a fraction of the effort of porting Windows-the-GUI
771.
▲
by
PeCaN
11y ago
Later in that thread: > Does it combine the base of Python 2 with the power of Python 3?
772.
▲
A Virtual Machine for Interpreting Programs in Static Single Assignment Form [pdf]
(cs.utsa.edu)
3 points
by
PeCaN
11y ago
|
0 comments
773.
▲
by
PeCaN
11y ago
This is, in fact, how rsync.net's canary works: https://www.rsync.net/resources/notices/canary.txt
774.
▲
by
PeCaN
11y ago
Worry not, http://left-pad.io/ has you covered.
775.
▲
by
PeCaN
11y ago
Yeah, I want to develop for WSL from Visual C++ on Linux running under WSL. ...What a time to be alive. Did hell freeze over or something?
776.
▲
by
PeCaN
11y ago
Hm, but GNU/Windows still implies usage of many non-free binary blobs bundles as drivers with the OS. I advocate stripping them out and terming it GNU/NT, affectionately referred to as "Gnewt".
777.
▲
by
PeCaN
11y ago
They've had a POSIX subsystem (SUA) for a while, but it's kind of ancient. I assume they resurrected it and implemented some Linux-specific APIs, which would actually be SO COOL.
778.
▲
by
PeCaN
11y ago
I switched from vim to emacs a week or so ago and with evil-mode I hardly even notice. It's actually really good, pretty much a full implementation of vim inside emacs—not like other editor's vim emulation which is usually just hj
779.
▲
by
PeCaN
11y ago
I used React to write an in-browser REPL with live data browsing for a programming language that I was writing and it was admittedly quite nice. It's what reminded me a bit of Qt/QML actually. But that is my only experience with R
780.
▲
by
PeCaN
11y ago
org-mode has an extremely low barrier to entry. I thought it seemed monstrous and magical for a while, but the learning curve is basically strictly linear (and goes on as far as you want, because Emacs). Smartphones aren't gonna repl
More ›