Live data from Hacker News

C (Cbang) - A system oriented programming language

blog.lse.epita.fr

41–50 of 86 posts

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

#41
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.

I am sure your sarcasm tag is on. That would be horrible.

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

#42
post #25

Earlier quoted context omitted.

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.

You're making it sound like C++ with Basic syntax, which does not increase its appeal.

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

#43
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…

Note that Apple is abandoning garbage collection for Objective-C.

Additionally, GC is not strictly necessary to solve buffer overruns and dangling pointers. Region-based memory management is an alternative for many use cases.

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

#44
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…

I too am looking for this in Java. Especially if the transpiler was easily extendable to add your own language features. The key would be to make sure it transpiles both ways so that it could be adopted in a corporate, Java-only environment.

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

#45
post #22
post #14

Earlier quoted context omitted.

Rust isn't finished yet. It's about to get 'regions', which come with custom allocators.

Hey, thanks for pointing that out (and thanks to kibwen for the link). I've been trying to use (or rather, bend) rust for kernel development lately, and memory allocation was my biggest limitation so far (including stack allocation). Definitely looking forward to future improvement on the language, it looks very promising.

Check out the binarytrees benchmark for an example of the placement new syntax:

https://github.com/mozilla/rust/blob/master/src/test/bench/s...

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

#46
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…

What requirements would you have for a better C? The only major requirement that I can think of is that it's compiled directly to assembly without requiring an intermediate runtime or VM. This helps avoid the fundamental "chicken and egg" problem that a lot of higher level languages have. This means that GC needs to be an optional component. It does not specifically exclude it, however.

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

#47
post #40
post #36

Earlier quoted context omitted.

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.

Objective-C isn't used in XNU the kernel that Mac OS X uses, Mach is a mixture of C and C++ (A subset of it actually, known as IOKit).

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

#48
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…

I love Inferno, but the actual kernel is written in C, not Limbo.

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

#49
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.

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

That's a ridiculous dismissal to make; we live in a world where hand-written assembly is considered a badge of honor, where people prefer to patch up a 40-year-old dinosaur rather than make something new, where people to go ridiculous lengths to avoid using a mouse simply because Unix didn't have mouse support in 1973. Is it any wonder that we're not using anything better?

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

#50
post #10
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…

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]…

Hate to be pedantic, but that's the Bourne shell, not bash.
Post reply on HN