Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Crack Becomes Compelling For General Purpose Coding

  1. #1
    Join Date
    Jan 2007
    Posts
    15,678

    Default Crack Becomes Compelling For General Purpose Coding

    Phoronix: Crack Becomes Compelling For General Purpose Coding

    Version 0.7 of Crack, a general purpose scripting language aimed for high performance, has been released and it brings a number of new features and improvements. To its developers the Crack language is reaching a pay-off point as being an alternative to writing programs in Python, C++, or Java...

    http://www.phoronix.com/vr.php?view=MTE4MDI

  2. #2
    Join Date
    Dec 2009
    Posts
    492

    Default

    Quote Originally Posted by phoronix View Post
    ...being an alternative to writing programs in Python, C++, or Java...
    Umm, yes. Sure. Whatever you say.

  3. #3
    Join Date
    Jan 2009
    Posts
    1,766

    Default

    When i read the title i thought it was an article about beneficial effect crack cocaine can have when writing code.

  4. #4
    Join Date
    Oct 2009
    Posts
    60

    Default

    > Crack has been developed on Linux x86 and x86-64. It is highly questionable whether it will build under any other platform. Portability will play a bigger role in future versions of the language.

    Portability should be a major feature for any runtime environment, moving it to "later" doesn' sound like a good idea. I also do not really understand why they introduce the ":=" assignment operator as in Pascal but then do not enforce it, allowing "=" for assignments. That way you still need "==" for comparisons, which makes the whole ":=" operator obsolete again. I have always hated having to search for misstakes like

    Code:
    if(a = 0)
    in beginner's code which are perfectly legal because of the side-effects of the "=" operator.

  5. #5
    Join Date
    May 2012
    Location
    Sunshine State
    Posts
    308

    Default

    Hmmm... Crack looks interesting. I'll have to give it a try.


    Quote Originally Posted by sturmflut View Post
    > Crack has been developed on Linux x86 and x86-64. It is highly questionable whether it will build under any other platform. Portability will play a bigger role in future versions of the language.

    Portability should be a major feature for any runtime environment, moving it to "later" doesn' sound like a good idea. I also do not really understand why they introduce the ":=" assignment operator as in Pascal but then do not enforce it, allowing "=" for assignments. That way you still need "==" for comparisons, which makes the whole ":=" operator obsolete again. I have always hated having to search for misstakes like

    Code:
    if(a = 0)
    in beginner's code which are perfectly legal because of the side-effects of the "=" operator.
    I'm sure, being a LLVM language, that portability won't be difficult to accomplish. What the developer probably means is that he only has time to focus on Linux ATM.
    But I agree that assignments like "if (a = 0)" shouldn't be allowed in ANY language.

  6. #6
    Join Date
    Dec 2008
    Location
    San Bernardino, CA
    Posts
    234

    Default

    Always interesting to see new languages supporting JIT compilation. Anyone know how it compares performance wise to JIT on Python (ie. PyPy)?

  7. #7
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,801

    Default

    I suggest that die-hard fans of this new language start to call themselves "crack whores" :-)

    (Analogous to "Linux whore", "Pixel whole", etc.)

    Also, if someone forks this project, please name it "Meth".

  8. #8
    Join Date
    Nov 2008
    Posts
    57

    Default AWK

    People forget about GNU awk; it's a very fast scripting language. I converted a bash script that had an execution time of 30 seconds to awk, and the new version executed in 0.1 seconds. It's also available on almost every platform. Even my dd-wrt router has GNU awk available.

  9. #9
    Join Date
    Jan 2011
    Posts
    1,287

    Default

    Quote Originally Posted by sturmflut View Post
    > Crack has been developed on Linux x86 and x86-64. It is highly questionable whether it will build under any other platform. Portability will play a bigger role in future versions of the language.

    Portability should be a major feature for any runtime environment, moving it to "later" doesn' sound like a good idea. I also do not really understand why they introduce the ":=" assignment operator as in Pascal but then do not enforce it, allowing "=" for assignments. That way you still need "==" for comparisons, which makes the whole ":=" operator obsolete again. I have always hated having to search for misstakes like

    Code:
    if(a = 0)
    in beginner's code which are perfectly legal because of the side-effects of the "=" operator.
    I can hardly see the use of a scripting language (other than bash and similar, which use is for being de facto standards on their platforms) which is not portable. Just make two builds if your language of choice will support only two outputs and provide compiled binaries.

  10. #10
    Join Date
    Jun 2012
    Posts
    366

    Default

    Quote Originally Posted by sturmflut View Post
    I also do not really understand why they introduce the ":=" assignment operator as in Pascal but then do not enforce it, allowing "=" for assignments. That way you still need "==" for comparisons, which makes the whole ":=" operator obsolete again. I have always hated having to search for misstakes like

    Code:
    if(a = 0)
    in beginner's code which are perfectly legal because of the side-effects of the "=" operator.
    Because C is the descendant of Fortran/Algol68, not Pascal. While Algol68 used the := operator for assignment and = for equality, C followed the more familiar Fortran syntax, which used = for assignment and == for equality.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •