Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Linux kernel to be rewritten in Rust

Name: Anonymous 2017-06-04 9:34

Take that stackriarchial chauvinist Ceepigs. Your hackety-crackety mess of cludges is going to be refactored even if you don't gonna like it.
https://www.reddit.com/r/programming/comm.ents/6f235k/rewrite_the_linux_kernel_in_rust/

Name: Anonymous 2017-06-04 9:45

They're doing the wrong thing, they just need to convert pottering and his gang and in few months Linux will not boot without rust runtime.

Name: Anonymous 2017-06-04 9:59

Why rewrite when could make something better though?

Name: Anonymous 2017-06-04 10:53

>>3
You have to convince binary blob vendors your toy OS deserves a driver.
Or if reverse-enginering your hobby, emulate windows kernel(ndis-wrapper on linux)

Name: Anonymous 2017-06-04 14:06

https://blog.ntpsec.org/2017/01/18/rust-vs-go.html


In practice, I found Rust painful to the point of near unusability. The learning curve was far worse than I expected; it took me those four days of struggling with inadequate documentation to write 67 lines of wrapper code for the server.

Even things that should be dirt-simple in Rust, like string concatenation, are unreasonably difficult. The language demands a huge amount of fussy, obscure ritual before you can get anything done.

The contrast with Go is extreme. By four days in of exploring Go I had mastered most of the language, had a working program and tests, and was adding features to taste.

Then I found out that a feature absolutely critical for writing network servers is plain missing from Rust.

Name: Anonymous 2017-06-04 14:31

>>5
https://blog.ntpsec.org/2017/01/18/rust-vs-go.html
I love the comments section, especially how that retard with anime-waifu on avatar gets butthurted and throws a tantrum. It must be a rule: if you watch chinese-cartoons then you are an immature neckbeard.

Name: Anonymous 2017-06-04 16:30

>>6
especially how that retard with anime-waifu on avatar gets butthurted and throws a tantrum.
That's only one. And I don't think the so called ``Rust Software Developer & Linux Professional'' knows what the picture is of, as he probably ironically chose it.

Also ``Battler Ushiromiya'' is not a ``waifu''. He is a man.

Name: Cudder !cXCudderUE 2017-06-04 17:09

Yet another step towards making completely locked-down, user-hostile, corporate/government-controlled systems.

https://www.gnu.org/philosophy/right-to-read.en.html
http://boingboing.net/2012/08/23/civilwar.html
http://boingboing.net/2012/01/10/lockdown.html

Name: Anonymous 2017-06-04 17:15

>>8
How? This is just to make it more secure.

Name: Anonymous 2017-06-04 18:15

>>9
Cudderberg's a Mossad nigger.

Name: Cudder !cXCudderUE 2017-06-05 3:28

>>9
Yes, "more secure". Against you.

Name: Anonymous 2017-06-05 6:37

>>8,11
That's some serious chutzpah. You say C programmers are EXPERT PROGRAMMERS who never make mistakes and C doesn't have a significantly higher amount of bugs, but you also say C programmers write inferior code full of bugs that respect your freedom constitutional right to be remotely exploited.

Name: Cudder !cXCudderUE 2017-06-05 11:47

>>12
"It's a continuation of the absurd choices I live in."

Name: Anonymous 2017-06-05 20:53

cudder can you bring back redcream

Name: Anonymous 2017-06-05 21:57

>>14
No can do, Redcream died by the cartel.

Name: Anonymous 2017-06-06 9:35

The argument Cudder makes is actually simple:
Safe and secure languages will prevents hacking, but hacking itself allows us freedom to use software and hardware resources as we see fit: hacking consoles to load homebrew games, bypassing DRM schemes, bypassing surveillance and control measures, reducing power of large organizations and states by lowering their security. C and C++ are essentially the cornerstone of security industry, employing thousands to maintain and fix systems. C/C++ also require a minimal level of expertise, which prevents hiring low-knowledge personnel: if organizations choose to cheap out on coders they suffer with more insecure and buggy software. C++ additionally prevents automation of software by AI due its undecidable parsing and complex abstractions, creating job security for C++ programmers.

Name: Anonymous 2017-06-06 9:44

Interviewer: Well, it's been a few years since you changed the world of software design, how does it feel, looking back?
Stroustrup: Actually, I was thinking about those days, just before you arrived. Do you remember? Everyone was writing 'C' and, the trouble was, they were pretty damn good at it. Universities got pretty good at teaching it, too. They were turning out competent - I stress the word 'competent' - graduates at a phenomenal rate. That's what caused the problem.
Interviewer: Problem?
Stroustrup: Yes, problem. Remember when everyone wrote Cobol?
Interviewer: Of course, I did too
Stroustrup: Well, in the beginning, these guys were like demi-gods. Their salaries were high, and they were treated like royalty.
Interviewer: Those were the days, eh?
Stroustrup: Right. So what happened? IBM got sick of it, and invested millions in training programmers, till they were a dime a dozen.
Interviewer: That's why I got out. Salaries dropped within a year, to the point where being a journalist actually paid better.
Stroustrup: Exactly. Well, the same happened with 'C' programmers.
Interviewer: I see, but what's the point?
Stroustrup: Well, one day, when I was sitting in my office, I thought of this little scheme, which would redress the balance a little. I thought 'I wonder what would happen, if there were a language so complicated, so difficult to learn, that nobody would ever be able to swamp the market with programmers? Actually, I got some of the ideas from X10, you know, X windows. That was such a bitch of a graphics system, that it only just ran on those Sun 3/60 things. They had all the ingredients for what I wanted. A really ridiculously complex syntax, obscure functions, and pseudo-OO structure. Even now, nobody writes raw X-windows code. Motif is the only way to go if you want to retain your sanity.
Interviewer: You're kidding...?
Stroustrup: Not a bit of it. In fact, there was another problem. Unix was written in 'C', which meant that any 'C' programmer could very easily become a systems programmer. Remember what a mainframe systems programmer used to earn?
Interviewer: You bet I do, that's what I used to do.
Stroustrup: OK, so this new language had to divorce itself from Unix, by hiding all the system calls that bound the two together so nicely. This would enable guys who only knew about DOS to earn a decent living too.
Interviewer: I don't believe you said that...
Stroustrup: Well, it's been long enough, now, and I believe most people have figured out for themselves that C++ is a waste of time but, I must say, it's taken them a lot longer than I thought it would.
Interviewer: So how exactly did you do it?
Stroustrup: It was only supposed to be a joke, I never thought people would take the book seriously. Anyone with half a brain can see that object-oriented programming is counter-intuitive, illogical and inefficient.
Interviewer: What?
Stroustrup: And as for 're-useable code' - when did you ever hear of a company re-using its code?
Interviewer: Well, never, actually, but...
Stroustrup: There you are then. Mind you, a few tried, in the early days. There was this Oregon company - Mentor Graphics, I think they were called - really caught a cold trying to rewrite everything in C++ in about '90 or '91. I felt sorry for them really, but I thought people would learn from their mistakes.
Interviewer: Obviously, they didn't?
Stroustrup: Not in the slightest. Trouble is, most companies hush-up all their major blunders, and explaining a $30 million loss to the shareholders would have been difficult. Give them their due, though, they made it work in the end.
Interviewer: They did? Well, there you are then, it proves O-O works.
Stroustrup: Well, almost. The executable was so huge, it took five minutes to load, on an HP workstation, with 128MB of RAM. Then it ran like treacle. Actually, I thought this would be a major stumbling-block, and I'd get found out within a week, but nobody cared. Sun and HP were only too glad to sell enormously powerful boxes, with huge resources just to run trivial programs. You know, when we had our first C++ compiler, at AT&T, I compiled 'Hello World', and couldn't believe the size of the executable. 2.1MB
Interviewer: What? Well, compilers have come a long way, since then.
Stroustrup: They have? Try it on the latest version of g++ - you won't get much change out of half a megabyte. Also, there are several quite recent examples for you, from all over the world. British Telecom had a major disaster on their hands but, luckily, managed to scrap the whole thing and start again. They were luckier than Australian Telecom. Now I hear that Siemens is building a dinosaur, and getting more and more worried as the size of the hardware gets bigger, to accommodate the executables. Isn't multiple inheritance a joy?
Interviewer: Yes, but C++ is basically a sound language.
Stroustrup: You really believe that, don't you? Have you ever sat down and worked on a C++ project? Here's what happens: First, I've put in enough pitfalls to make sure that only the most trivial projects will work first time. Take operator overloading. At the end of the project, almost every module has it, usually, because guys feel they really should do it, as it was in their training course. The same operator then means something totally different in every module. Try pulling that lot together, when you have a hundred or so modules. And as for data hiding. God, I sometimes can't help laughing when I hear about the problems companies have making their modules talk to each other. I think the word 'synergistic' was specially invented to twist the knife in a project manager's ribs.
Interviewer: I have to say, I'm beginning to be quite appalled at all this. You say you did it to raise programmers' salaries? That's obscene.
Stroustrup: Not really. Everyone has a choice. I didn't expect the thing to get so much out of hand. Anyway, I basically succeeded. C++ is dying off now, but programmers still get high salaries - especially those poor devils who have to maintain all this crap. You do realise, it's impossible to maintain a large C++ software module if you didn't actually write it?
Interviewer: How come?
Stroustrup: You are out of touch, aren't you? Remember the typedef?
Interviewer: Yes, of course.
Stroustrup: Remember how long it took to grope through the header files only to find that 'RoofRaised' was a double precision number? Well, imagine how long it takes to find all the implicit typedefs in all the Classes in a major project.

Name: Anonymous 2017-06-06 9:45

Interviewer: So how do you reckon you've succeeded?
Stroustrup: Remember the length of the average-sized 'C' project? About 6 months. Not nearly long enough for a guy with a wife and kids to earn enough to have a decent standard of living. Take the same project, design it in C++ and what do you get? I'll tell you. One to two years. Isn't that great? All that job security, just through one mistake of judgement. And another thing. The universities haven't been teaching 'C' for such a long time, there's now a shortage of decent 'C' programmers. Especially those who know anything about Unix systems programming. How many guys would know what to do with 'malloc', when they've used 'new' all these years - and never bothered to check the return code. In fact, most C++ programmers throw away their return codes. Whatever happened to good ol' '-1'? At least you knew you had an error, without bogging the thing down in all that 'throw' 'catch' 'try' stuff.
Interviewer: But, surely, inheritance does save a lot of time?
Stroustrup: Does it? Have you ever noticed the difference between a 'C' project plan, and a C++ project plan? The planning stage for a C++ project is three times as long. Precisely to make sure that everything which should be inherited is, and what shouldn't isn't. Then, they still get it wrong. Whoever heard of memory leaks in a 'C' program? Now finding them is a major industry. Most companies give up, and send the product out, knowing it leaks like a sieve, simply to avoid the expense of tracking them all down.
Interviewer: There are tools...
Stroustrup: Most of which were written in C++.
Interviewer: If we publish this, you'll probably get lynched, you do realise that?
Stroustrup: I doubt it. As I said, C++ is way past its peak now, and no company in its right mind would start a C++ project without a pilot trial. That should convince them that it's the road to disaster. If not, they deserve all they get. You know, I tried to convince Dennis Ritchie to rewrite Unix in C++.
Interviewer: Oh my God. What did he say?
Stroustrup: Well, luckily, he has a good sense of humor. I think both he and Brian figured out what I was doing, in the early days, but never let on. He said he'd help me write a C++ version of DOS, if I was interested.
Interviewer: Were you?
Stroustrup: Actually, I did write DOS in C++, I'll give you a demo when we're through. I have it running on a Sparc 20 in the computer room. Goes like a rocket on 4 CPU's, and only takes up 70 megs of disk.
Interviewer: What's it like on a PC?
Stroustrup: Now you're kidding. Haven't you ever seen Windows '95? I think of that as my biggest success. Nearly blew the game before I was ready, though.
Interviewer: You know, that idea of a Unix++ has really got me thinking. Somewhere out there, there's a guy going to try it.
Stroustrup: Not after they read this interview.
Interviewer: I'm sorry, but I don't see us being able to publish any of this.
Stroustrup: But it's the story of the century. I only want to be remembered by my fellow programmers, for what I've done for them. You know how much a C++ guy can get these days?
Interviewer: Last I heard, a really top guy is worth $70 - $80 an hour.
Stroustrup: See? And I bet he earns it. Keeping track of all the gotchas I put into C++ is no easy job. And, as I said before, every C++ programmer feels bound by some mystic promise to use every damn element of the language on every project. Actually, that really annoys me sometimes, even though it serves my original purpose. I almost like the language after all this time.
Interviewer: You mean you didn't before?
Stroustrup: Hated it. It even looks clumsy, don't you agree? But when the book royalties started to come in... well, you get the picture.
Interviewer: Just a minute. What about references? You must admit, you improved on 'C' pointers.
Stroustrup: Hmm. I've always wondered about that. Originally, I thought I had. Then, one day I was discussing this with a guy who'd written C++ from the beginning. He said he could never remember whether his variables were referenced or dereferenced, so he always used pointers. He said the little asterisk always reminded him.

Name: Anonymous 2017-06-06 10:03

>>16
hacking consoles to load homebrew games
But consoles weren't designed to run homebrew. Why wont you just buy a computer or fund a console with open architecture.

bypassing DRM schemes
Have you considered producing something of your own and releasing it under a free license?

bypassing surveillance and control measures
Consider leaving the private property that is being surveilled.

reducing power of large organizations
Shareholders have invested a lot of money into that power and you are proposing to just rob them of their investments? Are you a communist?

Name: Anonymous 2017-06-06 10:49

>>19
Organizations such as megacorporations, oppressive governments and institutions.
Are you a North Korean, CIA and Coca-Cola shill?

Name: Anonymous 2017-06-06 11:00

You would have to do hacking at the hardware level.

Name: Cudder !cXCudderUE 2017-06-06 11:30

>>19
But consoles weren't designed to run homebrew. Why wont you just buy a computer or fund a console with open architecture.
I don't care what something was "designed" to do, I care about what it can do.

Have you considered producing something of your own and releasing it under a free license?
It's coming... (innuendo not intended.)

Consider leaving the private property that is being surveilled.
Good luck leaving Earth (and maybe the universe).

Shareholders have invested a lot of money into that power and you are proposing to just rob them of their investments? Are you a communist?
Rob them and then make your own money off it. That's real capitalism.

Name: Anonymous 2017-06-06 12:43

>>16
Safe and secure languages will prevents Mossad, but Mossad itself allows them freedom to use software and hardware resources that they do not own as they see fit: hacking nuclear plants to cause meltdowns, shutting down medical infrastructure, remotely installing surveillance and control measures, reducing power of large anti-Israel organizations and anti-Israel states by lowering their security. C and C++ are essentially the cornerstone of sham security industry, employing thousands to maintain and pretend to fix systems. C/C++ also require a minimal level of expertise, which encourages hiring Indian H1B personnel: if organizations choose to cheap out on coders by using C and C++ they suffer with more insecure and buggy software. C++ additionally prevents understanding of software by anyone due its undecidable parsing and complex abstractions, creating job security for C++ programmers.

Name: Anonymous 2017-06-06 13:53

>>23
Post reported to C++ Standards Committee for intolerance and anti-C-emetism.

Name: Anonymous 2017-06-07 7:23

>>22
It's coming... (innuendo not intended.)
how's progress on browser and/or decompiler? haven't been following it since progrider died

Name: Anonymous 2017-06-07 7:57

Name: Anonymous 2017-06-07 11:09

>>26
http://i67.tinypic.com/ezpctv.png
zomg lol teh quality!11

Name: Anonymous 2017-06-07 18:17

>>27
Let's see your 64kb browser.

Name: Anonymous 2017-06-08 6:02

>>28
lets see these guys implement diff

Name: Anonymous 2017-06-08 6:20

Name: Anonymous 2017-06-10 16:28

C is not white culture. C is degenerate.

Name: Anonymous 2017-06-13 10:27

Another great benefit of C++ is long compilation times, which allow some rest periods.
Add template metaprogramming(not constexpr) liberally with variadic function templates.
Variadic functions force the compiler to create a new template for each parameter pack and it can't be optimized out(since variadic template exist only at overloading resolution stage).

Name: Anonymous 2017-06-13 17:19

>>32
Another great benefit of C++ is long compilation times
I don't use templates

Name: Anonymous 2017-06-14 0:18

>>33
Then you're just using C with classes.

Name: Anonymous 2017-06-14 7:55

>>33
You use them, they are just invisible. Anytime you have auto variables or overloading of types/classes the compiler helpfully adds implicit templates.
If you don't believe me try to compile with -fno-implicit-templates -fno-implicit-inline-templates -ftemplate-depth=0 -Wtemplates

Name: Anonymous 2017-06-14 8:11

C++ is templates all the way down.
All the nice "modern" functional stuff is built on top of ugly as fuck template hacks and meta-templates. C++ standard library was called STL(Standard Template Library at one point).
The only time C++ was free of templates (C with classes) was a pre 1990's, pre-standard Sepples.

Name: Anonymous 2017-06-15 1:00

>>18
In an announcement that has stunned the computer industry, Ken Thompson, Dennis Ritchie and Brian Kernighan admitted that the Unix operating system and C programming language created by them is an elaborate prank kept alive for over 20 years. Speaking at the recent UnixWorld Software Development Forum, Thompson revealed the following:

"In 1969, AT&T had just terminated their work with the GE/Honeywell/AT&T Multics project. Brian and I had started work with an early release of Pascal from Professor Niklaus Wirth's ETH labs in Switzerland and we were impressed with its elegant simplicity and power. Dennis had just finished reading 'Bored of the Rings', a National Lampoon parody of the Tolkien's 'Lord of the Rings' trilogy. As a lark, we decided to do parodies of the Multics environment and Pascal. Dennis and I were responsible for the operating environment. We looked at Multics and designed the new OS to be as complex and cryptic as possible to maximize casual users' frustration levels, calling it Unix as a parody of Multics, as well as other more risque allusions. We sold the terse command language to novitiates by telling them that it saved them typing.

Then Dennis and Brian worked on a warped version of Pascal, called 'A'. 'A' looked a lot like Pascal, but elevated the notion of the direct memory address (which Wirth had banished) to the central concept of the language. This was Dennis's contribution, and he in fact coined the term "pointer" as an innocuous sounding name for a truly malevolent construct.

Brian must be credited with the idea of having absolutely no standard I/O specification: this ensured that at least 50% of the typical commercial program would have to be re-coded when changing hardware platforms. Brian was also responsible for pitching this lack of I/O as a feature: it allowed us to describe the language as "truly portable".

When we found others were actually creating real programs with A, we removed compulsory type-checking on function arguments. Later, we added a notion we called "casting": this allowed the programmer to treat an integer as though it were a 50kb user-defined structure. When we found that some programmers were simply not using pointers, we eliminated the ability to pass structures to functions, enforcing their use in even the Simplest applications. We sold this, and many other features, as enhancements to the efficiency of the language. In this way, our prank evolved into B, BCPL, and finally C.

We stopped when we got a clean compile on the following syntax:
for(;P("\n"),R-;P("|"))for(e=3DC;e-;P("_"+(*u++/8)%2))P("|"+(*u/4)%2);

At one time, we joked about selling this to the Soviets to set their computer science progress back 20 or more years.

Unfortunately, AT&T and other US corporations actually began using Unix and C. We decided we'd better keep mum, assuming it was just a passing phase. In fact, it's taken US companies over 20 years to develop enough expertise to generate useful applications using this 1960's technological parody. We are impressed with the tenacity of the general Unix and C programmer. In fact, Brian, Dennis and I have never ourselves attempted to write a commercial application in this environment.

We feel really guilty about the chaos, confusion and truly awesome programming projects that have resulted from our silly prank so long ago."Dennis Ritchie said: "What really tore it (just when ADA was catching on), was that Bjarne Stroustrup caught onto our joke. He extended it to further parody, Smalltalk. Like us, he was caught by surprise when nobody laughed. So he added multiple inheritance, virtual base classes, and later ... templates. All to no avail. So we now have compilers that can compile 100,000 lines per second, but need to process header files for 25 minutes before they get to the meat of "Hello, World".

Major Unix and C vendors and customers, including AT&T, Microsoft, Hewlett-Packard, GTE, NCR, and DEC have refused comment at this time. Borland International, a leading vendor of object-oriented tools, including the popular Turbo Pascal and Borland C++, stated they had suspected this for a couple of years. In fact, the notoriously late Quattro Pro for Windows was originally written in C++. Philippe Kahn said: "After two and a half years programming, and massive programmer burn-outs, we re-coded the whole thing in Turbo Pascal in three months. I think it's fair to say that Turbo Pascal saved our bacon". Another Borland spokesman said that they would continue to enhance their Pascal products and halt further efforts to develop C/C++.

Professor Wirth of the ETH institute and father of the Pascal, Modula 2 and Oberon structured languages, cryptically said "P.T. Barnum was right." He had no further comments.

Name: Anonymous 2017-06-15 16:41

Ken Thompson, who still mostly uses C despite working at Google which is largely a C++ shop, has had as long an exposure to C++ as just about anyone, having worked with with Bjarne Stroustrup, C++’s inventor, at Bell Labs:

I would try out the language as it was being developed and make comments on it. It was part of the work atmosphere there. And you’d write something and then the next day it wouldn’t work because the language changed. It was very unstable for a very long period of time. At some point I said, no, no more.

In an interview I said exactly that, that I didn’t use it just because it wouldn’t stay still for two days in a row. When Stroustrup read the interview he came screaming into my room about how I was undermining him and what I said mattered and I said it was a bad language. I never said it was a bad language. On and on and on. Since then I kind of avoid that kind of stuff.

Name: Anonymous 2017-06-15 16:57

>>38
Ken Thompson is a Go programmer now.

Name: Anonymous 2017-06-16 9:41

>>39

Implying people only (know how to) use one programming language at a time and that people identify as $PLANG-programmers. I'm a motherfucking fighter jet!

Name: Anonymous 2017-06-16 17:10

Внедряясь в мозг гуманоида, рептоид задает ему некую программу поведения, выход из которой практически невозможен. Сознание фиксируется на <шаблонных> действиях.

Name: Anonymous 2017-06-17 18:19

>>37
Dennis Ritchie scammed management so he could invent his new version control system, dangerous program, under the guise of a word processing system.

"We knew there was a scam going on—we'd promised a word processing system, not an operating system," Ritchie later admitted. The team did deliver Unix as a text processing application to the Patent Department, but an operating system was what Bell eventually got—albeit a rough one at first.

"Program development generally occurred out-of-hours," a programmer subsequently explained to Salus. "The terminals on the development machine were in a common room and when several people were at work, one would call out 'dangerous program!' before executing a new a.out file (the default output file from the linking editor). This allowed others to save their editor-files quickly (and often)."

Name: Anonymous 2017-06-18 17:49

>>17-18
Satire is the lowest form of wit and the lowest form of comedy.

Name: Anonymous 2017-06-18 23:53

>>37,42
We went to lunch afterward, and I remarked to Dennis that easily half the code I was writing in Multics was error recovery code. He said, "We left all that stuff out. If there's an error, we have this routine called panic, and when it is called, the machine crashes, and you holler down the hall, 'Hey, reboot it.'"

Don't change these.
Name: Email:
Entire Thread Thread List