Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gens
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
211.
▲
by
gens
10y ago
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/
212.
▲
by
gens
10y ago
>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 su
213.
▲
by
gens
10y ago
>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
214.
▲
by
gens
10y ago
Wouldn't be a dream if it as real, now wouldn't it ?
215.
▲
by
gens
10y ago
>Take this (slightly contrived) example: In Gnome 3 you can "zoom" out to panarama view all your running applications, while you have a HTML5 video running in your browser and everything just runs flawlessly, with almost no sys
216.
▲
by
gens
10y ago
There is the object of this discussion, systemd, that has always been about "starting things in parallel" to make it "boot faster" but there has never been a proper benchmark (the distrowatch guy said, when asked,
217.
▲
by
gens
10y ago
Of course nobody benchmarked. Rarely are there programmers in OSS these days that benchmark anything. (not nearly as common as those who claim "speed") There was a bug though where the journaling was so slow it caused the whole se
218.
▲
by
gens
10y ago
Maybe only a few pages remain as programs don't inherit memory from their parents. It could be done for those strings but consider that mappings are in 4k pages (so the rest of the page would have to be cleared to 0).
219.
▲
by
gens
10y ago
The kernel copies the strings you pass in the array of pointers. (haven't checked though, but it is better then the alternative of not copying and dealing with the mess)
220.
▲
by
gens
10y ago
I don't understand why it is limited to 255 chars. The kernel copies the string(s) into the programs memory so it would be a kernel bug if the program got a non null-terminated or too long string. More importantly this program has a bu
221.
▲
by
gens
10y ago
Since this is a "vs" can i assume that rust is better in all regards to C ? As in that rust is flawless ? Or should it be "Rust vs C's Pitfalls" ?
222.
▲
by
gens
10y ago
(Drunk?) Campers starting fires in forests ? Yep, same as (adult) people building homes to live in.
223.
▲
by
gens
10y ago
Totally different ? Are you sure about that ? >.. does absolutely nothing to help build your code .. I don't know much about cargo nor rust. How does it help build your code ? edit: nvm, i found how [0] >.. manage dependency vers
224.
▲
by
gens
10y ago
I found a good way to improve myself is to play against myself in my head.
225.
▲
by
gens
10y ago
There is, your bog standard package manager (in unix and unix-like systems).
226.
▲
by
gens
10y ago
https://lwn.net/Articles/531114/ and https://www.kernel.org/doc/Documentation/cgroup-v1/ (or the newer https://www.kernel.org/doc/Documentation/cgroup-v2.t
227.
▲
by
gens
10y ago
If i'm not misunderstanding you.. (as i didn't watch most of the videos there) See data-oriented programming (not to be confused with data-driven). In the end code just processes data.
228.
▲
by
gens
10y ago
While amd64 is better in that it gives more registers for compilers to use, we rarely need to "move on". In fact many programs will work better (more efficient, faster) with 32bit pointers (as many programs would with 16bit intege
229.
▲
by
gens
10y ago
I remember reading a long time ago about the syntaxes and the author said that it is because AT&T assembled faster. Makes sense considering that the intel syntax requires some backtracking (or more of temporary data). (please don'
230.
▲
by
gens
10y ago
There is nothing preventing cars with manual clutches from doing that. People going down hills with manual transmission also keep the car in gear (they teach you that). And it doesn't matter as it is not much fuel compared to the fuel
231.
▲
by
gens
10y ago
Literature has not much to do with science, but a bit with history (depends though on if you count social sciences as science, but even then art is art). Math is a pure .. topic, although it is very much used in all other education. Note t
232.
▲
by
gens
10y ago
Am i the only one that sees the massive problems with this ? >But with the new basic school reform all children will also learn via periods looking at broader topics, such as the European Union, community and climate change, or 100 years
233.
▲
by
gens
10y ago
Yes, was just about to correct myself, sizeof(char) is always 1. Nevermind me.
234.
▲
by
gens
10y ago
>Actually, since C99, sizeof char is defined to be 1 (byte). The number of bits in a byte is implementation-defined. (edit: i misread, it's always 1) To be pedantic, a size of char is defined by CHAR_BIT in limits.h. As well as all
235.
▲
by
gens
10y ago
I know a little bit about AI and the things it needs to drive, and i know horses well. There is no comparison, a horse is much smarter then any AI i seen [0]. Look at the traffic closely and observe all the edge cases and all the details
236.
▲
by
gens
10y ago
They couldn't use the shorter code space. So no, they could not do whatever they wanted. (note that making a completely new instruction encoding scheme would fail for obvious reasons)
237.
▲
by
gens
10y ago
Amd64 encoding, as is the case with most x86 encodings, is longer then it should be. Due to the two companies not communicating/cooperating. That is the one advantage that i think ARM has over x86/amd64. That ARM encoding is much
238.
▲
by
gens
10y ago
Well, not lawyers directly. More through lack of cooperation (due to competitive mentality). http://www.agner.org/optimize/blog/read.php?i=25
239.
▲
by
gens
10y ago
AFAIK the reason for amd64 being what it is are intels lawyers.
240.
▲
by
gens
10y ago
The thing that put apple products above and beyond other products that were the same was marketing. Apple is great at creating hype. Personally i will never buy an apple product. Mostly because of the insane prices but partially out of pr
More ›