HNHacker News
TopNewBestAskShowJobs

gens

503 karma · joined April 2, 2016

submissionscomments
gens··on Drawing Lines is Hard (2015)
Xorg seems to agree.
gens··on The Fastest Blog in the World (2015)
It's not just downloading. Websites come with css (not that big of a problem) and JS (big problem). All that has to be processed by the browser. I found that websites sometimes pull css and js bundles (as in whole ones, even over 20kB ones), even from some other servers. Just the other day i tried a website on my aging smartphone and it sometimes took over 20 sec just to write a character (one) in the search thing.

The average website on teh internets, in my opinion/experience, is bloated to hell. And i'm not talking about functionality here.

gens··on Elon Musk: Humans must merge with machines or become irrelevant in AI age
Tone...
gens··on What TfL Learned from Tracking Your Phone on the London Underground
OSX, IOS and "NetworkManager"(linux) do that.

Thing is that it is usually useless. Only instance where you would even send a package (thus showing your MAC) when searching is if you were searching for a hidden AP. Funny that Microsoft is the only one that got that right, as they have a checkbox that says "hidden AP". All others just assume that the AP may be hidden and try to connect anyway. (worse is that they scan in the background while you are connected. NM does it at least)

gens··on Mkfile(8) is severely syscall limited on OS X
No point in speculating. I showed you how. Go test it.

Even the fastest SSD is not even near the speed of /dev/zero. Easy to extrapolate any speed from those two points (minus the filesystem overhead (the thing we are talking about is the block layer)).

I'd be interested in a test of a FUSE based fs like ntfs. So if you have one, just run some tests. (don't forget to flush the cache)

gens··on Mkfile(8) is severely syscall limited on OS X
Just do a test with dd or some small piece of code. Why rely on heresay.
gens··on Mkfile(8) is severely syscall limited on OS X
Maybe i'm misunderstanding you, but.. Before every one a "echo 3 > /proc/sys/vm/drop_caches" is executed. Processor is in "performance" mode.

dd if=./big_file.file of=/dev/null bs=64K

535020540 bytes (535 MB, 510 MiB) copied, 8.70128 s, 61.5 MB/s

dd if=./big_file.file of=/dev/null bs=4K

535020540 bytes (535 MB, 510 MiB) copied, 8.36283 s, 64.0 MB/s

dd if=./big_file.file of=/dev/null bs=1K

535020540 bytes (535 MB, 510 MiB) copied, 8.82508 s, 60.6 MB/s

Only thing gone up is the cpu usage (same is negligible at ~60MB/s).

dd if=/dev/zero of=/dev/null bs=1K count=1024K

1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.06113 s, 1.0 GB/s

dd if=/dev/zero of=/dev/null bs=4K count=256K

1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.343595 s, 3.1 GB/s

dd if=/dev/zero of=/dev/null bs=32K count=32K

1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.160191 s, 6.7 GB/s

gens··on Signal-cli: command-line and dbus interface to Signal
Idk about API-s, but tox.
gens··on Posix Has Become Outdated (2016) [pdf]
Yep, only libc. And only for some popularly installed (after system install) programs.

>We selected these apps from the official marketplaces for each OS: Google Play (45 apps), Apple AppStore (10 apps), and Ubuntu Software Center (45 apps). We chose popular apps based on the number of installs, selecting apps across nine categories, ..

So mostly GUI programs. Not to mention that probably all those "apps" call into libc eventually (even android ones).

Only thing this made me think about is "why is this taken seriously here?".

gens··on Posix Has Become Outdated (2016) [pdf]
First i looked at who made the paper (since it is right there on the first page) and thought "oh, this should be detailed and objective". But alas it was neither...

Android cares about POSIX about as much as Windows. Programs that were tested were from "app stores", based on the popularity of downloads from same. POSIX equals only libc in this study. Actually i could poke holes in this study all day. Just want to say that it is very much not an objective one.

PS I even went above the first sentence that talks about age as if it matters.

gens··on UK Teen Hacked 150,000 Printers
Thing is that.. JS is usually broken, the world is usually unfair, IoT has proven itself to be usually shit and most frameworks are bad.

Xerox is not a small startup that just wants to make printing easier. Even if it was, at least some basic security practices should be considered.

I mean i'm here writing a dinky little website using SQL and golang (i am a newbie at bout) and I am sterilizing inputs to make sure that SQL injection can't happen. Meanwhile the United Nations(!!) website has been exploited by same. There's even a defcon(?) talk about how a firm was hired to asses the security of that UN website and when the guy sent them an email saying that it is vulnerable to SQL injection, they responded by threatening him to never do that (year later it wasn't fixed). Wish i could find that talk.. it was great. Then there is the Technicolor router (big company) that my cousin has, that i just googled to find it vulnerable to all kinds of things and just horrid in general. Then there is ...

gens··on Build a fast deep learning machine for under $1K
You don't need a powerful cpu for gpu loads.
gens··on Intel’s Atom C2000 chips are bricking products, and it’s not just Cisco hit
Somewhat off-topic:

Are Cisco products worth the money ?

Personally i haven't had that much experience with their stuff, but i remember seeing a brand new router running hot with two fans blowing in it (other routers at the time were 2x smaller without fans). I understand that Cisco should be the de facto networking standard, but is it really worth the name ?

gens··on How an obscure cult grew to become the dominant religion of the Western world
From what i remember it was but a part of one book. Funny enough Warhammer 40k tech priests were probably inspired by this.
gens··on What Killed the Linux Desktop (2012)
Xfce, kde (possibly unity, maybe enlightenment) can do the former. Dmenu (probably unity, kde, other standalone programs) and enlightenment can do the latter (Enlightenments Everything launcher is amazing).
gens··on What Killed the Linux Desktop (2012)
My productivity went up when i stopped arguing about DEs online. It is currently taking a dip, though.
gens··on What Killed the Linux Desktop (2012)
If XP was secure, performant on modern hardware, stable and supported by new programs i would still be using it. More then that the reason i quit windows98 was that warcraft 3 doesn't work on it. Windows 7 configuration menus are god awful and windows10 ones are far worse then that.

You are making a fallacy in saying that old equals bad/ugly. XFCE is keeping it oldschool and can still look amazing (xubuntu looks great IMO).

There's much to talk about when talking about GUI things. Much indeed. Many things are even quantifiable, instead of being pure personal preference. Just remember that Microsoft spent a lot of effort into studies in what culminated to be windows95, while many other projects did not (the study that ended up being gnome3 is a joke in comparison).

gens··on Snaps are universal Linux packages
It is rare to see something come out of Fedora that is not NIH.

As for all the mentioned package/image managers, IMO they all bring more problems then solutions (except maybe nix). Dependency resolution brings sloppiness and keeping the programs dependencies up to date would kill the internets and hard drives (compared to a normal package manager). They should just build a build bot and amen (or just not do anything). The only "problem" they solve is proprietary program distribution, and that is solved by a Filesystem Hierarchy Standard (and fd.o) compliant installer such as MojoSetup (as used by GoG).

gens··on Don't setenv in multi-threaded code on glibc
From one (or more) of the comments here you can see that the reasoning for rust in topics about C is "everybody should write rust instead of C". At least for some people.

One other comment got it right, it is annoying to have multiple rust comments in every thread about C.

But you are right, best way to deal with these kinds of... i don't want to be rude, is ignoring.

PS Thank you for addressing the rest of the comment, not just the part you made personal.

gens··on Don't setenv in multi-threaded code on glibc
If you ask me rust is also not for programming systems. (the error handling specifically)

Side note: Who even started the whole "x is a system programming language" ? Who said you can't write "system software"[0] in just about any language that can (directly or indirectly) do "lower level" things. For example the MS Singularity OS has a virtual machine and all the drivers and everything is high level code.

>Would I want my init system written in Java or C#? Hell no. Would I want it written in Rust? Yes please maybe it will crash less and have fewer CVEs.

Contrary to popular belief init systems are simple and can be written in any language. Not to mention that when people talk about inits they don't think about the actual initialization part (mounting, setting network, etc) but about the starting of programs part. Those two things are similar from a far but are really not so much.

>I have a belief that every time a C developer switches to Rust, users benefit (unless developer goes crazy from Rust's cognitive load, but this is a separate issue :) )

I have a belief that people should make up their own mind and do whatever they want. This topic is about C and only about C. All other talk is "noise".

Note that i actually like programming in C as i like optimized programs, so i may be biased. (although not nearly as biased as the rust crowd)

[0] https://en.wikipedia.org/wiki/System_programming_language

gens··on Htop Explained Visually
Worth reading is the builtin documentation ("h" or F1). More things there like memory used in virtualization, T, Z and D for processes, and "l" and "s" commands.

I like these visual explanations though.

gens··on Don't setenv in multi-threaded code on glibc
In some things it is, while in some things it ain't. In some things haskell is better then bout, in some things it ain't. In fact the same could be said about most programming languages.

But that is not the point...

gens··on Don't setenv in multi-threaded code on glibc
Why does everything related to C have to have comments on rust ?
gens··on Systemd v228 local root exploit
Do you have any real objections to what i said ? Did i even mention systemd or any sysvinit ?

Polkit is on systems with and without systemd. And, if you just have to pull sysvinit into it, shell scripts are simple (note that permissions to do something are not even remotely related to the shell scripting language as permissions in shell scripts are in the filesystem).

Less social, more technical. Please. Otherwise there is no hope of making things better.

gens··on Systemd v228 local root exploit
The problem is that you have many things to configure instead of just one. That is a problem as we humans have a limited capacity for remembering things. On top of that polkit is basically javascript and xml (i think), and one can not expect everybody to understand javascript or have the patience to read/write xml. Now, in addition to groups and users (and advanced fs permissions and app/se/linux/armor), you have polkit and dbus permissions. This makes it really hard to look at something and know what it can do. For example steam, when you start it up, asks NetworkManager to bring up an internet connection. To disable that one has to write javascript.

In short, it's a clusterfuck. Even if everything worked properly (that is hard with Turing complete configuration files) it is still too vague, too big of a load to administrate. I expect the fd.o/fedora peoples answer to that (when people start complaining, that is) to be a GUI, not a rewrite.

gens··on Ask HN: Ultrabook for programming?
"for programming" ...

I programmed just fine on a single core idk-what older celeron with 512MB of RAM and a.. idk ~1000x700 resolution (and even all that was waaaay too much). Next time say what you want to program, as for web and such programming you need a ton of RAM (and probably cpu) while some things/languages you can program just fine with 256MB and a weak cpu.

Bdw cherry trail has a sound card in the cpu that doesn't yet work under linux.

edit: ".. IntelliJ IDEA?" Requirements are clear: https://en.wikipedia.org/wiki/IntelliJ_IDEA . And you can just open your task manager and see how much memory or cpu it uses.

gens··on Too much sitting, too little exercise may accelerate biological aging
Similar story here.

Running is good, great in fact. As long as you run properly and on soft ground, that is. If you can swim somewhere i would recommend that instead as it is easier on the joints. Exercise will also give you an appetite, ofc.

gens··on What Happens to OO When Processors Are Free? (2015)
note: i didn't go to school for this

Communicating sequential processes[0][1] more or less models that. Golang has some history with CSP (they are based on the concept of pipes and CSP was described with pipes before) while haskel/erlang and similar functional languages model the "sequential" part of processing data.

[0]https://en.wikipedia.org/wiki/Communicating_sequential_proce...

[1]http://usingcsp.com/

gens··on What Happens to OO When Processors Are Free? (2015)
>OO has been designed to model the world in the hope that this would make expressing business logic easier.

OO was designed for multi processing by sending msgs between multiple processes[0]. Like nature does. However I do not find it suitable for most parallel computing work because race conditions.

[0] https://www.youtube.com/watch?v=fhOHn9TClXY

gens··on What Happens to OO When Processors Are Free? (2015)
>AFAIUI from a recent talk by Alan Kay his original intention was that communication would be async ..

This talk maybe ?

https://www.youtube.com/watch?v=fhOHn9TClXY

← PreviousPage 7 of 10Next →