Live data from Hacker News

The Crack Programming Language

code.google.com

21–30 of 33 posts

Re: The Crack Programming Language

#22
post #19
post #8

import crack.io cout; x := 'test'; cout `This is a $x\n`; # prints "this is a test" to standard output. Really weird strings... I don't even know how to type this character with my keyboard layout. Nice job for this language. It has a lot of things for so few versions. I couldn't build something like this. But who would use this? D is 10 times better and mature and almost no one uses it.

The scripting language is Perl, apparently.

Does Perl make us of a lot of characters you can't find on your keyboard? Sure, you can use backticks shell style, but you'll probably have better luck with IPC::Open3.

Perl's strings look pretty much the same as everyone else's strings.

Re: The Crack Programming Language

#23
post #20
post #11

Earlier quoted context omitted.

I''l give you an example: http://en.wikipedia.org/wiki/File:KB_Italian.svg edit: a couple of funny things for italian keyboards, if you are a programmer or use linux/unix: there is no backtick, there is no tilde, '/' is shift-7, '/' and '?' are on different keys, '{}' are on altgr-shift-è.

It might go a long way to explaining why I don't come across many Italian Unix sysadmins, and the few I have come across coded their system scripts in php.

I'm Italian and nearly everyone I know (who's a programmer) uses an US layout.

Re: The Crack Programming Language

#24
post #11

Earlier quoted context omitted.

You don't know where to find the backtick on your keyboard?!

I''l give you an example: http://en.wikipedia.org/wiki/File:KB_Italian.svg edit: a couple of funny things for italian keyboards, if you are a programmer or use linux/unix: there is no backtick, there is no tilde, '/' is shift-7, '/' and '?' are on different keys, '{}' are on altgr-shift-è.

And this, ladies and gentlemen, is why all programmers, sysadmins and so on use a US keyboard layout.

Re: The Crack Programming Language

#27

"Crack aims to provide the ease of development of a scripting language with the performance of a compiled language." Have you looked at the Flua project yet? It's pretty much this and much more. http://flua-lang.org/

You are joking aren't you? There's not a line of documentation on the Flua webpage. The Windows download doesn't open on my Windows machine and I need a GUI to run it on Linux (which my linux box doesn't support). It also claims to be as fast as C, but a cursory examination of the source suggests it is entirely written in Python and Flua!

Re: The Crack Programming Language

#28

I am inclined to dismiss the language for this: i++

I would have once disagreed with you being a C programmer. However, nowadays there is a tendency to providing functional features, including for example if..else expressions. But if you make i++ an expression, you end up with ambiguities if i++ ends up being the last line of an if..else branch, and say s = "hello" being the last line of the other branch. In a statically compiled language, the compiler has no choice but to interpret both as expressions and complain about the types of the two if..else branch expressions not matching. However, the programmer may have intended these expressions for their side effects only, not their values. Perfectly good code needs to be rewritten to work around the type checker. How fiddly.

Re: The Crack Programming Language

#29

This page doesn't sell it to me. Maybe it's a great language, who knows? 1. With Go, I understand the point. It makes advances in terms of how easy it is to write concurrent programs, without completely ditching the traditional imperative model. 2. Rust is a different take on the same point. We want concurrency and safety. Rust's difference from Go is that it is more safe, and makes it easier to give latency guarante…

Technically, work on Crack became public before work on Go did. So you should be asking what Go provides that Crack doesn't. Technically.

Re: The Crack Programming Language

#30
post #27

"Crack aims to provide the ease of development of a scripting language with the performance of a compiled language." Have you looked at the Flua project yet? It's pretty much this and much more. http://flua-lang.org/

You are joking aren't you? There's not a line of documentation on the Flua webpage. The Windows download doesn't open on my Windows machine and I need a GUI to run it on Linux (which my linux box doesn't support). It also claims to be as fast as C, but a cursory examination of the source suggests it is entirely written in Python and Flua!

That's because there is no online version of the documentation right now. It's only available in the editor, it's an Alpha after all. Just because the compiler is written in Python it does not mean the Flua programs are executed in Python. In fact they can be executed in multiple environments and C++ is the one which is currently being developed, hence the programs _are_ fast. How come the Windows download doesn't work for you? It works on vanilla Windows, that's really strange.

Just stay on a constructive level. It would have been nice if you submitted a bug report on GitHub about the error you got on your Windows machine.

Post reply on HN