[ all ][ prog / lounge / softeng ][ Options ][ Home ]
LAYOUT:
SORT:
FILTER:
STYLE:
[1:7:1526886464:1526886464:1519392940:7]

@robpike true used to be an empty file

1 Name: Anonymous 2018-02-23 13:35
/bin/true used to be an empty file. The shell would open it, do nothing, and exit with a true status code.
When the Unix Support Group (development organization at Bell Labs) formalized everything, they gave it a long SCCS header, as they did every other file, and then needed to add "exit 0" at the end. The file was therefore infinitely larger than before.
At some point, somewhere (not sure where) it was decided this was poor engineering, probably because the shell spends time reading that big SCCS header as a comment one byte at a time.
(It probably became a shell builtin somewhere along the line too, but that's for someone else to study.)
The command moved to /usr/bin/true. I don't know when, where and especially why.
Eventually to avoid the unbearable overhead of executing a comment that shouldn't be there at all, someone rewrote true as a C program. What was once an empty file is now a non-portable executable binary compiled from C.
This is why we can't have good software. This program could literally have been an empty file, a nothing at all, a name capturing the essence perfectly.
But the inexorable forces of improvement dictate we can't accept that, so here we are:

% file /usr/bin/true
/usr/bin/true: Mach-O 64-bit executable x86_64
%

Instead of:

(Post truncated)
The 5 newest replies are shown below.
Read this thread from the beginning.
3 Name: Anonymous 2018-02-28 13:25
>>2
the goons who maintain GNU would never do it.
4 Name: Anonymous 2018-02-28 22:49
>>3
If the GNU maintainers don't care, I probably wouldn't care either; it's not as if I'm maintaining it. I also cannot forecast any meaningful exploit from GNU true being a C program rather than a literal blank file. In the end, this is a matter of aesthetics. The GNU way has never been the way of aesthetically pleasing code.
5 Name: Anonymous 2018-05-17 02:47
Lisp machines already solved this problem. Lisp has a GC, so there's one GC for everything. Hash tables, bignums, rationals, objects, classes, structures, arrays, strings, packages, and functions are all standard data types that can be shared between any program and created at runtime. Strings have all the properties you expect like being able to grow and shrink to fit the size of the text, and on the Symbolics machines they even had font attributes. Arrays support multiple dimensions with displacement like a rectangular part of a window. Everything on a Lisp machine also has built-in bounds checking and data is promoted to larger types if necessary. All of this is done by a combination of hardware, microcode, and OS, so programs don't need nearly as much code.

https://people.eecs.berkeley.edu/~kubitron/cs252/handouts/papers/symbolics.pdf

Maybe it was on someone's calendar to fix, but they
never see it because they can't run the program either.

Hmm. I used to think the strength of lisp machine tools
came from the fact that the developers actually used them
regularly in their work and depended on them in order to
develop everything they were going to need in the next
generation system. That is, I though that there was a
causal link between using your own tools and making them
better.

(Post truncated)
6 Name: Anonymous 2018-05-17 04:14
Who gives a shit the creator of Go thinks?
7 Name: Anonymous 2018-05-21 07:07
>>6
I'd be more surprised if he didn't.
Name:
Leave this field blank:
[2:3:1526866071:1526866071:1526750116:3]

Quantum Programming

1 Name: Anonymous 2018-05-19 17:15
2 Name: Anonymous 2018-05-20 00:13
Didn't watch, but if this relates to so called 'Quantum Computers' (which is a marketing term) then please die.
3 Name: Anonymous 2018-05-21 01:27
>>2
Didn't read but if this relates to Quantum-Computer-denial then please expire in the fire.
Name:
Leave this field blank:
[3:9:1526677077:1526677077:1525028467:9]

visibly disgusted

1 Name: Anonymous 2018-04-29 19:01
I come to this site and I think about the posture of most of you and I am sick
The 5 newest replies are shown below.
Read this thread from the beginning.
5 Name: Anonymous 2018-05-12 02:46
>>4
What do you do for that two minutes?
6 Name: Anonymous 2018-05-14 05:03
>>5
Force my collarbones upward, and imagine the back of my head being pulled vertically - you'll feel your entire spine stretch. Hold this for 20 seconds, and then rest for 10 seconds. Repeat.
7 Name: Anonymous 2018-05-17 04:16
>>6
What sort of improvement have you seen as a consequence of this routine?
8 Name: Anonymous 2018-05-18 08:51
>>7
It fixed my grotesque posture.
9 Name: Anonymous 2018-05-18 20:57
>>6
20 seconds is exhausting. I had to break at 4 seconds because my heart was pounding out of it's case. But I'll keep at it.
Name:
Leave this field blank:
[4:1:1526492653:1526492653:1526492653:1]

I may have invented the web, but...

1 Name: Anonymous 2018-05-16 17:44
<@timberners_lee> I can imagine Mark Zuckerberg is devastated that his creation has been abused and misused.
Name:
Leave this field blank:
[5:11:1526062884:1526062884:1522934801:11]

giving python a second chance

1 Name: Anonymous 2018-04-05 13:26
what if guido is actually pretty smart?

what if he just made a couple big mistakes but we ignore all the things he did right?

I mean isn't it very sad to have this idea that the majority of programmers are idiots with terrible bad taste. maybe there's something to python that isn't all bad that we overlooked.

beyond the forced indentation, which is extremely irritating. I find that the fact they dont properly implement lexical scope not only a huge turn off but like.. you just know they'll never fix it or accept patches to fix it.
The 5 newest replies are shown below.
Read this thread from the beginning.
7 Name: Anonymous 2018-04-15 05:04
>>6
well guess what, it did
8 Name: Anonymous 2018-04-16 14:07
>>7
If that's the case, your software is buggy and needs fixing.
9 Name: Anonymous 2018-04-18 03:00
>>8
Um, I don't take advice from anonymous nobodies.....
10 Name: Anonymous 2018-04-19 02:47
/lounge/ got spammed I think.
11 Name: Anonymous 2018-05-11 18:21
for i in range(5):
... i
...
0
1
2
3
4
(Post truncated)
Name:
Leave this field blank:
[6:124:1525965583:1525965583:1488823417:124]

Emoji thread aka. fuck unicode

1 Name: Anonymous 2017-03-06 18:03
The 5 newest replies are shown below.
Read this thread from the beginning.
120 Name: Anonymous 2018-04-30 06:38
121 Name: Anonymous 2018-05-02 07:59
>>120
What vendor supplies goatfinfer.ga's emojis?
122 Name: Anonymous 2018-05-03 22:52
>>121
The Goatfinfer emoji squad.
123 Name: Anonymous 2018-05-10 05:17
124 Name: Anonymous 2018-05-10 15:19
Name:
Leave this field blank:
[7:14:1525804409:1525804409:1523164229:14]

is this really the new /prog/rider?

1 Name: that guy 2018-04-08 05:10
I heard this is the new /prog/rider

is this true? all I see are 4chan memes, what about /prog/rider culture???

Does bbcode even work? Can you even do a buttsort?
The 5 newest replies are shown below.
Read this thread from the beginning.
10 Name: Anonymous 2018-05-03 05:47
11 Name: Anonymous 2018-05-03 22:51
12 Name: Anonymous 2018-05-07 14:11
>>10
404
13 Name: Anonymous 2018-05-08 18:27
Helo dear sir this is very nice programming thread
Here in Chhattisgarh they teach us how to use very complicated "Windows" O.S. if you are 10% of best students and if you boot it succesful they promote you to Tech Pujari and give very advance Java courses, unless you are of the untouchable cast of course.
Rajesh study jaba well there and already make my own fizzbuzz app, Elsa Spidderman abortion apk and our street cleaning bot software mod.
14 Name: Anonymous 2018-05-08 18:33
>>13
Do you do outsource work?
Name:
Leave this field blank:
[8:30:1524494857:1524494857:1489307829:30]

Arch Linux Thread

1 Name: Anonymous 2017-03-12 08:37
What do you think of Arch? Is it really ``minimal''?
The 5 newest replies are shown below.
Read this thread from the beginning.
26 Name: Anonymous 2017-12-15 06:11
Why the fuck this
27 Name: Anonymous 2017-12-25 22:53
>>1
Arch uses systemd, so no.
28 Name: Anonymous 2018-04-21 10:20
Arch Linux is considered harmful.
29 Name: Anonymous 2018-04-22 18:36
arch is pretty good overall.

yeah not a big fan of systemd but despite /g/ crusading against it all the time it actually works.

I've been looking at other init systems like s6 and openrc and no offense but.... is this really what you want as init?
30 Name: Anonymous 2018-04-23 14:47
>>29
Some people really don't appreciate the Emacs approach to functionality that Systemd takes. As for me, I appreciate an init system that includes process supervision that can be configured in a declarative manner. To my understanding, only Systemd and GNU Sheperd fit this.
Name:
Leave this field blank:
[9:1:1524247020:1524247020:1524247020:1]

bit of info on suffix tree and BWT

1 Name: Anonymous 2018-04-20 17:57
Name:
Leave this field blank:
[10:3:1523885250:1523885250:1523211420:3]

Hi I'm 13 and I just started watching Rick and Morty and I

1 Name: Anonymous 2018-04-08 18:17
Hi I'm 13 and I just started watching Rick and Morty and I can tell you for a fact it's my favorite show!!. Lik the one time Ricky said said there's probably like no good !!!! i was agreeing so much I'am smarter then you're average fidget spinner teen at middle school to even though I have one. I may be young but I'm smarter then every theist on earth basically the show is also really deep when they said like no one was born for a reason I was so blown away as they must have big balls to say that on tv so I told my friends on minecraft and they agree too. LOL once when my mom took me to McDonald's I asked for the Mulan dipping sauce and the dumb bitch didn't even get the reference XD One time in class i evan shouted "I'm PICKLE RIIIICK!" and Mrs.Janice told me to go outside i fucking hate that cunt school is for dumb ppl just like what Rick said, i m too smart for such imbicells. But yeah I love Rick and Morty and I'm actually smart enough to get it to.
2 Name: Anonymous 2018-04-15 12:48
can't say I disagree
3 Name: Anonymous 2018-04-16 13:27
can say I disagree, but not going to
Name:
Leave this field blank: