Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PeCaN
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
73 ms
·
721.
▲
by
PeCaN
11y ago
In the least abrasive way possible – If you're a self-described 'noob', I feel like investigating router exploits is going to be more confusing than anything. Embedded devices can be quite different from what you're used
722.
▲
by
PeCaN
11y ago
Yeah that's kind of the problem, those happen to be the two most commonly used operators. All the other arithmetic operators try to convert too ('5' - 3 === 2), but at least produce NaN if the arguments can't coerce to n
723.
▲
by
PeCaN
11y ago
Or you could do the much more sane Perl/Tcl thing and just have different pairs of operators for strings and numbers. Then the type of the variable is determined by what you're doing to it, not by what you last did to it somewhere
724.
▲
by
PeCaN
11y ago
I used to think that people who thought JS was ridiculous didn't understand JS. I didn't understand JS. Well, actually, I did understand JS. I understood it really well. You could show me any obscure piece of JS and I could tell y
725.
▲
by
PeCaN
11y ago
FreeBSD's RISC-V port was mainlined for 11.0, so presumably the privileged ISA is relatively stable.
726.
▲
by
PeCaN
11y ago
It's a little more complicated than that though. For example, SSE/AVX instructions cause Intel CPUs to (briefly) raise power consumption considerably[1]. In some cases it may be better to avoid vector instructions when optimizing
727.
▲
by
PeCaN
11y ago
I have it on an HTC One M8 on T-Mobile. Maybe he has a manufacturer that doesn't like to update ( cough Samsung cough ) or a lazy carrier. But non-Nexus devices definitely get updates somewhat regularly now. Most manufacturer/carr
728.
▲
by
PeCaN
11y ago
Pretty sure the T60 was designed and manufactured entirely by Lenovo but they had permission to use the IBM logo on it. Nobody makes laptops like IBM used to :-( I know they seem to strongly prefer low-volume high-margin industries but I re
729.
▲
by
PeCaN
11y ago
The main issue is that PyPy's commercial target audience (people who need fast Python, particularly for numerical calculations) doesn't care about Python 3. There's not nearly as much potential funding for Python 3 as for Pyt
730.
▲
by
PeCaN
11y ago
Er... those are orthogonal concepts. Itanium had a simple instruction set with primarily register-register operations. The explicit ILP part has nothing to do with that.
731.
▲
by
PeCaN
11y ago
Dark humor is like a child with terminal cancer. It never gets old.
732.
▲
by
PeCaN
11y ago
That's a non-point. There's nothing intrinsic about higher level language that prevents security holes. There are plenty of low-level languages that are immune to buffer overflows—Ada, Rust, D† (to an extent), Oberon†, Cyclone....
733.
▲
by
PeCaN
11y ago
Maybe I've spent too much time at a terminal, but I find monospace fonts quite readable and aesthetically pleasing (especially Anonymous Pro, Droid Sans Mono, and Source Code Pro).
734.
▲
by
PeCaN
11y ago
How about OCaml? It's not as theoretically advanced as Haskell, but it gets work done, is easy to read, fast, easy to reason about the complexity of, has decent libraries, and is generally quite pleasant.
735.
▲
by
PeCaN
11y ago
I am not as familiar with Rust as I would like, but it seems like a relatively high-level language, akin to OCaml without garbage collection. When programming Ada my thought process is relatively close to C (but with proper modules and gene
736.
▲
by
PeCaN
11y ago
You might want to check out Ada, D, and OCaml too. Ada is as safe as Rust and lower-level but very fast and very mature. It gets a bit of a bad rap for being ugly, but after a couple hours the Pascal-ish syntax is not any uglier than C. The
737.
▲
by
PeCaN
11y ago
It's "lightweight" in terms of UI, not in terms of speed or (especially) file size. The user experience is not bloated and it stays out of your way, but it is very much not a small program. Electron-based anything is huge, on
738.
▲
by
PeCaN
11y ago
Except WDF is a C++ API.
739.
▲
by
PeCaN
11y ago
I'm going to say no , because C++ seems closer to Java at first but it's really not. You'll probably spend too much time learning about templates and its object system instead of learning to think in the things that make C
740.
▲
by
PeCaN
11y ago
RAII is nice—I hope GCC's __attribute__((cleanup)) gets included in C2x. Templates though... are nice, I guess, but the cost in compile time, ABI, code size, and ease of debugging is a lot to swallow. Besides, with the preprocessor and
741.
▲
by
PeCaN
11y ago
On the other hand, it's not a critical security application. If someone breaks it, you just don't get a little money. If the exploit becomes widespread, you can update the malware. The author probably wanted to be able to somewhat
742.
▲
by
PeCaN
11y ago
Only if you wrote 8086 assembler on an original IBM PC.
743.
▲
by
PeCaN
11y ago
Coming soon™: GNU/Petya It doesn't even allow installing non-Free software, FSF will love this.
744.
▲
by
PeCaN
11y ago
NVLink is similar to a higher-bandwidth PCIe connection, except that multiple GPUs can be connected with it. It's primarily useful for very large convnets, which use a lot of memory and can be bandwidth-limited. It doesn't requi
745.
▲
by
PeCaN
11y ago
Regarding Panorama, I was and still am a huge Panorama user and the extension they replaced it with works just as well. Stuff like that is cleaner as an extension anyway (which of course begs the question of why the hell Pocket and Hello ar
746.
▲
by
PeCaN
11y ago
Aw, I thought this was some kind of colorful Conway's game of life and spent a while looking for a play button after drawing a bunch of gliders and such.
747.
▲
by
PeCaN
11y ago
NVLink and CAPI[1] both have huge potential for machine learning. However, a lot of the benefits of NVLink for ML come from GPU-to-GPU NVLink, which doesn't require CPU support. 1. CAPI doesn't seem to get mentioned to much arou
748.
▲
by
PeCaN
11y ago
GCC[1] and Clang[2] both support this with __builtin_add_overflow and family: int a = get_number_a(), b = get_number_b(), c; if (__builtin_add_overflow(a, b, &c)) // Note: Unlike your example, returns true iff overflow
749.
▲
by
PeCaN
11y ago
My opinion is that we need a What every programmer should know about compilers essay. I could take that document more seriously if it didn't make compiler writers out to be evil.
750.
▲
by
PeCaN
11y ago
I'm not sure that's undefined though. It's equivalent to ... void myfunc(struct foo *p) { int *t = (int *)((char *)p + offsetof(p->bar)); ... } right? In the C abstract machine taking the address of a
More ›