Live data from Hacker News

C (Cbang) - A system oriented programming language

blog.lse.epita.fr

31–40 of 86 posts

Re: C (Cbang) - A system oriented programming language

#31
post #11
post #10

Earlier quoted context omitted.

Sounds like what you're looking for is the original Bash source code, circa 1977, for example [1]: LOCAL STRING copyto(endch) REG CHAR endch; { REG CHAR c; WHILE (c=getch(endch))!=endch ANDF c DO pushstak(c|quote) OD zerostak(); IF c!=endch THEN error(badsub) FI } Applicable macros if you want to give your code that classic ALGOL 68 smell in [2]. [1] http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/... [2]…

"An original idea. That can't be too hard. The library must be full of them."

I remember going through that code, and wanting to simultaneously reach for a spraycan of holy water, and claw my eyes out.

Similar efforts (the linguist at DRI who did a #define of totally new control structures . . . in Russian, though he wasn't Russian, it was just a lark) are why we can't have nice things.

Re: C (Cbang) - A system oriented programming language

#32
post #25

Earlier quoted context omitted.

Funny how everyone wants to program in BASIC but doesn't want to admit it. Like the Python and Lua guys. Try FreeBASIC, it's a compiler.

Not sure if irony, or really dumb comment.

:D It has pointers too, will make a man outta you. Then you'll be able to easily move on to C++ as the OOP structure is almost the same.

Re: C (Cbang) - A system oriented programming language

#33
post #13
post #6

How about a few more default data structures, like resizable arrays or hashes? I find the biggest bump in my productivity in most other languages is that those two things are there already.

The problem is dynamic memory allocation. It's actually one of the gripes I have with the "rust" language [1]. As a C coder I find it hard to take seriously a language that don't let me customize memory allocation easily. It's not impossible to do right though, C++ has "allocators" parameter templates to do exactly that (there's a default implementation that you can "override" with a custom class). [1] https://news.y…

Allocators were well intentioned, but writing them is not a walk in the park, and you cannot pass, say, a “std::vector>” to a function expecting “const std::vector&”.

Re: C (Cbang) - A system oriented programming language

#34
post #3

I think that languages that are a just thin shell on top of C (as opposed to languages that merely target C, e.g. Chicken Scheme) might have some potential. I'll call this coffeescriptification --still eagerly awaiting the first transpiled language that does nothing but remove C's braces and semicolons. If someone doesn't do it by next April Fools, I certainly will (I already have the name in mind: Glee (the italics…

One thing often overlooked in language design is the filename. It's 2012, why are languages still stuck with IBM-era filename extentions when they could use unicode?! For instance:

Rust: filename.ℛ

Java: filename.☕

Glee: filename.☺

Isn't that just so much clearer and nicer-looking than ".rs" or ".java" or ".g"? It's really the fine aesthetic points like this that can make or break a language.

Re: C (Cbang) - A system oriented programming language

#36
post #30
post #12

I didn't checked the details, but I would love to see ten attempts every year, trying to solve the same problem. D and Go are not trying to provide us with a better C, because they don't share the concept of, a language that translates straightforward to assembler, but still is designed so that you can mount good abstractions with it. This is what you need for kernel programming, embedded systems, and a good deal of…

Native Oberon, Spin, Singularity, Home, Inferno are all operating systems written in GC enabled system programming languages. D and Go are just following that thread. Eventually all mainstream OS will have such type of languages and C will be legacy. Microsoft is already slowly doing that by dropping support for C later than C90, and adding COM based API as the default Windows API. Now mainly for Metro, perhaps for t…

Interesting that none of those systems are in active usage...

> Eventually all mainstream OS will have such type of languages and C will be legacy.

That's just speculation. Personally I have high hopes for languages with optional-only GC, and much stricter memory management principals. Ala, Rust.

Re: C (Cbang) - A system oriented programming language

#37
post #3

I think that languages that are a just thin shell on top of C (as opposed to languages that merely target C, e.g. Chicken Scheme) might have some potential. I'll call this coffeescriptification --still eagerly awaiting the first transpiled language that does nothing but remove C's braces and semicolons. If someone doesn't do it by next April Fools, I certainly will (I already have the name in mind: Glee (the italics…

One thing often overlooked in language design is the filename. It's 2012, why are languages still stuck with IBM-era filename extentions when they could use unicode?! For instance: Rust: filename.ℛ Java: filename.☕ Glee: filename.☺ Isn't that just so much clearer and nicer-looking than ".rs" or ".java" or ".g"? It's really the fine aesthetic points like this that can make or break a language.

Uhh, sure.

Re: C (Cbang) - A system oriented programming language

#38

What could be more tedious than another low-level language based on subtle complaints about C?

Complaining that someone has invented a new low-level language?

What could be more tedious than another low-level language based on subtle complaints about C?

YALLBOSCAC? How about a language named YALL and boscc as the name of the compiler?

Re: C (Cbang) - A system oriented programming language

#39
post #3

I think that languages that are a just thin shell on top of C (as opposed to languages that merely target C, e.g. Chicken Scheme) might have some potential. I'll call this coffeescriptification --still eagerly awaiting the first transpiled language that does nothing but remove C's braces and semicolons. If someone doesn't do it by next April Fools, I certainly will (I already have the name in mind: Glee (the italics…

One thing often overlooked in language design is the filename. It's 2012, why are languages still stuck with IBM-era filename extentions when they could use unicode?! For instance: Rust: filename.ℛ Java: filename.☕ Glee: filename.☺ Isn't that just so much clearer and nicer-looking than ".rs" or ".java" or ".g"? It's really the fine aesthetic points like this that can make or break a language.

Brilliant. I'll be sure to mention your name memory address in the foreword of the obligatory O'Reilly book (taking suggestions for the cover animal; I'm partial to the thylacine, myself).

One suggested improvement: Rust's extension should preferably be .® to jive with the language's official logo.[1] And with the advent of emoji, we can give Perl a file extension of .🐪 (Unicode Character 'DROMEDARY CAMEL' (U+1F42A)). Perl 6 can get the bactrian camel instead.

[1] http://en.wikipedia.org/wiki/File:Rust_programming_language_...

Re: C (Cbang) - A system oriented programming language

#40
post #36
post #30

Earlier quoted context omitted.

Native Oberon, Spin, Singularity, Home, Inferno are all operating systems written in GC enabled system programming languages. D and Go are just following that thread. Eventually all mainstream OS will have such type of languages and C will be legacy. Microsoft is already slowly doing that by dropping support for C later than C90, and adding COM based API as the default Windows API. Now mainly for Metro, perhaps for t…

Interesting that none of those systems are in active usage... > Eventually all mainstream OS will have such type of languages and C will be legacy. That's just speculation. Personally I have high hopes for languages with optional-only GC, and much stricter memory management principals. Ala, Rust.

Windows and Mac OS X are, and they are slowly incorporating such changes, as I mentioned.

Don't forget that UNIX was once upon a time a research operating system, and took a few decades to have industry impact.

New ideas take time to mature.

Post reply on HN