Announcement

Collapse
No announcement yet.

Crack Becomes Compelling For General Purpose Coding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pipe13
    replied
    Originally posted by gamerk2 View Post
    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.
    ??? Algol68 yes. But Fortran???? C .NEQ. FORTRAN!

    Just nodding in. Crack's a yawner. Wake me when it gets a debugger.

    Leave a comment:


  • gamerk2
    replied
    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.

    Leave a comment:


  • mrugiero
    replied
    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.

    Leave a comment:


  • macemoneta
    replied
    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.

    Leave a comment:


  • RealNC
    replied
    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".

    Leave a comment:


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

    Leave a comment:


  • F i L
    replied
    Hmmm... Crack looks interesting. I'll have to give it a try.


    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.

    Leave a comment:


  • sturmflut
    replied
    > 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.

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:

Working...
X