Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gens
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
241.
▲
by
gens
10y ago
It looks to you . IMO secure software comes from knowledge and care as much as from a safer language, if not more. But then there is performance, in which what no "modern" "safe" language even comes close to C. >Mean
242.
▲
by
gens
10y ago
>See what happens when you change HALF_OF_BUFFER_SIZE from 1M to 1M+64. Or 128 or 1024. Tested. There's a greater difference between aligned and aligned_unaligned. But that made the test go over my cache size (2MB per core), so i te
243.
▲
by
gens
10y ago
>I tend to the opposite view: those saying "do not do X" are in fact obligated to explain why X should be avoided. But perhaps this is just a difference in worldview. For me it depends on the context. Here aligned access makes
244.
▲
by
gens
10y ago
Does anybody have an example of good performance of unaligned memory access on modern cpus ? And note that it doesn't matter if the cpu supports AVX, but if it has a flag that says it can do fast unaligned memory access (i don't r
245.
▲
by
gens
10y ago
Don't do unaligned memory access, whatever your cpu flags say. Another thing you can do, if you don't plan on using the results immediately, is to use non-temporal store (movntps for SSE2). If you do plan to use the results right
246.
▲
by
gens
10y ago
I was interested in how key events are generated and how the driver in the computer was made (if not the generic driver). But that was handled by a premade mini computer and OSS software.
247.
▲
by
gens
10y ago
There were plenty http://blog.darknedgy.net/technology/2015/09/05/0/
248.
▲
by
gens
10y ago
Inspired by "Pitfalls of Object Oriented Programming"[0], i did something similar to this (in C). Idk how the cpu usage would be by doing it another way, but this way processing thousands of matrices is no problem. [0] http:/
249.
▲
by
gens
10y ago
gens's* law of writing software that performs well: Don't be smart. Do simple data structures where you can. Arrays, AoA, SoA, AoS. Process data in bulk where you can. Put complex algorithms only where needed (kd-tree when doing s
250.
▲
by
gens
10y ago
It feels good. Jokes aside cash is (IMO) very important. If you have cash in your pocket you are not vulnerable to.. how to say this.. "being fucked over" by your government or, as is the case lately, someone else's governmen
251.
▲
by
gens
10y ago
Funny thing is that Sherlock Holmes usually used abductive reasoning, instead of strictly deductive reasoning.
252.
▲
by
gens
10y ago
I go by "Never attribute to malice that which is adequately explained by stupidity". I'm sure some are in it for personal gain (maybe even on bout sides), and that some are in it for actual social benefit (India comes to mind
253.
▲
by
gens
10y ago
I usually "explain" that to people by writing something like: There are all kinds of idiots. There are male idiots. There are female idiots. There are chinese idiots. There are black idiots. There are slovenian idiots. There are a
254.
▲
by
gens
10y ago
Funny, i also find critical thinking in short supply.
255.
▲
by
gens
10y ago
Just get an LTS. Like xubuntu or something. It's no use comparing a rolling release to whatever OSX is.
256.
▲
by
gens
10y ago
The transistor was invented in 1925 by Julius Edgar Lilienfeld (a FET). The first one built was in 1947 (a BJT). A metal-oxide (MOS) transistor is a FET. Commonly known as MOSFET.
257.
▲
by
gens
10y ago
I remember a game called "GunZ" (the 2005 one, i think) internally using torrents to propagate updates. But it was a long time ago.
258.
▲
by
gens
10y ago
A sony dev on "Pitfalls of Object Oriented Programming": http://harmful.cat-v.org/software/OO_programming/_pdf/Pitfal...
259.
▲
by
gens
10y ago
A well engineered differential [0]. [0] https://www.youtube.com/watch?v=JEiSTzK-A2A
260.
▲
by
gens
10y ago
GNOME3 is also in a fight against any linux system that doesn't use systemd.
261.
▲
by
gens
10y ago
The pictures there are missing (i get error 400 when i try to download them directly). After 10min of googleing i found this [0] (it shows swap), and this [1] from 2012. Nothing conclusive, especially considering that all the popular malloc
262.
▲
by
gens
10y ago
How about fragmentation ? AFAIK jemalloc is horrible when it comes to memory usage.
263.
▲
by
gens
10y ago
You can send fd's through UDS and they do expose a lot of info on the process on the other side. http://www.thomasstover.com/uds.html
264.
▲
by
gens
10y ago
Can't you just imagine it is reversed, where the_array[num_things-1] is the first ?
265.
▲
by
gens
10y ago
..I was going to write my usual long speech about how all humans are basically the same. but you know what ? Nah. There will always be narrow minded people. And to battle narrow-mindness one should read books (good books[0], that is). If di
266.
▲
by
gens
10y ago
C doesn't check for overflows.. I also disagree with "shifting around stuff across registers and memory all the time". An "average" function doesn't really have all that many variables and x86 has 8 GP register
267.
▲
by
gens
10y ago
Something like "(x 3+(y/20) 5)" will generate a few lines of assembly (about 3 to 5 in this case, assuming registers are pre-loaded). But usually no, there won't be much more code. For example "while(1){..." eq
268.
▲
by
gens
10y ago
People rarely differentiate "complicated" and "complex". I get the feeling from GO that it was designed for making complex programs.
269.
▲
by
gens
10y ago
Since you didn't give a link, is it this one ? http://fabiensanglard.net/rayTracing_back_of_business_card/i...
270.
▲
by
gens
10y ago
>Wrong, you can fork() and only the thread issuing the fork () call survives the fork(), for example. Thinking about it, it makes perfect sense. Threads are processes that share the same memory space. When a thread is created (via pthrea
More ›