News for hackers. Stuff that matters.
Re:Thor – A minimalistic operating system in assembly and C++ by pjmlp on Tuesday August 23, 2016 @02:34PM (#12346232)
> C is the first language that both stayed out of your way and also provided reasonable productivity features

If we ignore the history of computers outside AT&T....

Re:Thor – A minimalistic operating system in assembly and C++ by dbcurtis on Tuesday August 23, 2016 @03:27PM (#12346720)
Example? Standard language that never required a trip to assembly language for system level programming?

On IBM's, PL/I didn't cut it that regard.

On a UNIVAC you could do a lot of system programming in FORTRAN, but only because there were a zillion proprietary extensions that accessed system programming primitives.

BASIC on a Commodore 64 had PEEK() and POKE() but that doesn't count either, very non-standard.

FORTH? Nope... still asm at the bottom.

Concurrent Pascal? Nope... not safe, despite the type checking, because you could twist variant records however you liked. And I think there was asm at the bottom anyway, IIRC.

COBOL, well, CDC COBOL had a bunch of extensions, too, but you still ended up in asm for system programming.

Show me the source code for a device driver in a high-level language that pre-dates C/B/BCPL.

Re:Thor – A minimalistic operating system in assembly and C++ by pjmlp on Tuesday August 23, 2016 @03:49PM (#12346904)
> On a UNIVAC you could do a lot of system programming in FORTRAN, but only because there were a zillion proprietary extensions that accessed system programming primitives.

Just like pure ANSI C without compiler extensions.

> Standard language that never required a trip to assembly language for system level programming?

Try to implement 100% of libc in ANSI C without writing one single line of Assembly, syscalls into the underlying OS or compiler specific language extensions.

> Show me the source code for a device driver in a high-level language that pre-dates C/B/BCPL.

ESPOL on Burroughs B5000, 1961.

Re:Thor – A minimalistic operating system in assembly and C++ by lake99 on Tuesday August 23, 2016 @07:30PM (#12348614)
You shouldn't complain about extensions to the language. C needs extensions too. For example, many architectures have 3 (or more) memory spaces: program/code, data, IO. If you want to do anything on IO, you'd have to rely on non-standard (proprietary) extensions to C, or, like FORTH, get to asm at the bottom, and call those functions from your C program.
Re:Thor – A minimalistic operating system in assembly and C++ by stcredzero on Tuesday August 23, 2016 @06:55PM (#12348431)
FORTH? Nope... still asm at the bottom.

I call shenanigans!

Re:Thor – A minimalistic operating system in assembly and C++ by dbcurtis on Tuesday August 23, 2016 @07:17PM (#12348551)
Either my sarcasm detecter is broken today, or you've never read the source code of a FORTH system. Or perhaps you are commenting that FORTH doesn't have high-level programming constructs -- but of course FORTH allows meta-programming, so you roll your own.
Re:Thor – A minimalistic operating system in assembly and C++ by stcredzero on Tuesday August 23, 2016 @08:02PM (#12348744)
I'm saying that it's shenanigans that he's justifying disqualifying FORTH as a systems programming language because "it's ASM at the bottom." So I'm on your side of that debate.
Re:Thor – A minimalistic operating system in assembly and C++ by Narishma on Tuesday August 23, 2016 @08:04PM (#12348750)
> Example? Standard language that never required a trip to assembly language for system level programming?

That would exclude C as well.