Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dezgeg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
361.
▲
Emulating the Intel 8080 on a MOS 6502
(pagetable.com)
69 points
by
dezgeg
12y ago
|
13 comments
362.
▲
by
dezgeg
12y ago
There's a #[repr(C)] annotation that can be placed on a struct, IIRC.
363.
▲
by
dezgeg
12y ago
C doesn't allow empty arrays.
364.
▲
by
dezgeg
12y ago
This bug doesn't have security implications. The term 'stack overflow' is slightly ambiguous, as it could either mean buffer overrun in the stack (which can often lead to arbitrary code execution) or the program simply runnin
365.
▲
by
dezgeg
12y ago
If you want to try this out on the latest nightly build, you'll have to replace `std::io` with `std::old_io`.
366.
▲
by
dezgeg
12y ago
It wouldn't affect the copy-on-write optimization or exec(), it just causes fork() to return an error earlier. 'vm.overcommit_memory = 2' attempts to guarantee that after a fork, all of the copy-on-write-pages can still be di
367.
▲
by
dezgeg
12y ago
malloc() and free() is what I meant by "standard memory allocation functions". I'd say program that is in the position to use madvise() effectively has implemented it's own heap allocator. Also, MADV_DONTNEED is only usa
368.
▲
by
dezgeg
12y ago
> I think Linux memory allocator devs could keep small preallocated buffer, return allocated space, and schedule independent maintenance after buffer gets low. It's already a possibilty. The gfp flags argument to kmalloc() may have
369.
▲
by
dezgeg
12y ago
There is actually a possibility for Linux processes to do exactly that if they use the vmpressure_fd() ( http://lwn.net/Articles/524742/ ). EDIT: Now that I look closer, it's possible that vmpressure_fd() was
370.
▲
by
dezgeg
12y ago
> [...] that it would only ever hand out in response to malloc() attempts inside a SIGNOMEM handler. POSIX doesn't allow malloc() to be called inside a signal handler at all. Also, when free():ing memory that is allocated with mallo
371.
▲
by
dezgeg
12y ago
My post wasn't meant as disagreement on the issue of whether some languages are safer than others. I apologize if this is is how the message was received. I was trying to point out that w.r.t. C strings, using strncpy is almost always
372.
▲
by
dezgeg
12y ago
To be fair, the real issue here is 'strncpy', whose destination argument does _not_ operate on C strings, despite that it's name starts with 'str'.
373.
▲
by
dezgeg
12y ago
Cgroups are not a virtualization / containerization feature like jails, their use cases are entirely different.
374.
▲
by
dezgeg
12y ago
Shells (at least bash) don't evaluate aliases when running non-interactively.
375.
▲
by
dezgeg
12y ago
I wanted to do that on one Android app, but apparently it's impossible to implement with Android's built-in localization features.
376.
▲
Microsoft BASIC for 6502 – Original Source Code (1978)
(pagetable.com)
250 points
by
dezgeg
12y ago
|
70 comments
377.
▲
by
dezgeg
12y ago
Angle brackets cause difficulties during parsing: since there is a '>>' operator, getting a type like 'List<List<int>>' to parse properly would require either a hack in the lexer or requiring a space be
378.
▲
‘Get off of my Cloud’ Verizon tells users ahead of 48-hour maintenance outage
(theregister.co.uk)
3 points
by
dezgeg
12y ago
|
0 comments
379.
▲
by
dezgeg
12y ago
On the other hand, having negative integers as literals will cause even harder problems with subtraction (as in "2-2")
380.
▲
API/ABI changes analysis for Linux C/C++ libraries
(upstream.rosalinux.ru)
1 points
by
dezgeg
12y ago
|
0 comments
381.
▲
by
dezgeg
12y ago
But an implementation where sizeof(int) == sizeof(long) == sizeof(long long) is allowed by the specification.
382.
▲
by
dezgeg
12y ago
Rust. Some of it's design goals (as stated on their webpage) are among the exact things you mentioned: zero-cost abstractions, minimal runtime, guaranteed memory safety, threads without data races.
383.
▲
Terminal emulator security issues (2003)
(seclists.org)
6 points
by
dezgeg
12y ago
|
0 comments
384.
▲
by
dezgeg
12y ago
If you're interested in this kind of stuff, be sure to check the author's (Michael Steil) blog: http://www.pagetable.com/ - he has written all kinds of juicy blog posts about low level programming.
385.
▲
by
dezgeg
12y ago
Another classic funny bug report, this time from Linus Torvalds to Fedora's flash plugin: https://bugzilla.redhat.com/show_bug.cgi?id=439858 Description of problem: youtube no workee - fedora 9 not usable for wif
386.
▲
by
dezgeg
12y ago
INTO is not supported in 64-bit mode.
387.
▲
by
dezgeg
12y ago
I remember reading about someone having built an USB business card with some low-cost ATTiny chip that opens Windows Paint and draws some picture there. The author had solved the problem of mouse acceleration by faking a graphics tablet wit
388.
▲
by
dezgeg
12y ago
The author _says_ that it's done by shell scripts, but in reality he's checking them by hand (i.e. in the coding tasks you get actual code review).
389.
▲
by
dezgeg
12y ago
I wonder if these estimations of integer overflow cost have taken into account all the possible optimizations where the compiler could safely remove overflow checks. For example, consider: void memzero_range(char* array, int start, in
390.
▲
Do Users Verify SSH Keys? (2011) [pdf]
(usenix.org)
1 points
by
dezgeg
12y ago
|
0 comments
More ›