News for hackers. Stuff that matters.
Re:Ask HN: What tech that's right around the corner are you ... by mirekrusin on Friday August 04, 2017 @05:22PM (#14932395)
Yes, can't wait for Crystal 1.0 release, awesome language.
Re:Ask HN: What tech that's right around the corner are you ... by sigjuice on Friday August 04, 2017 @05:50PM (#14932628)
From crystal-lang.org, Crystal is a compiled language

I never understood the phrase compiled language.

Re:Ask HN: What tech that's right around the corner are you ... by goatlover on Friday August 04, 2017 @06:00PM (#14932703)
A compiled language uses a compiler to create a executable binary as opposed to a runtime that interprets or just-in-time compiles the language as it runs. Ruby is interpreted, C is compiled. Generally speaking, compiled languages are more performant but lack some of the flexibility of having a runtime available.

Crystal sacrifices some of Ruby's metaprogramming capabilities for performance and static type assurances.

Re:Ask HN: What tech that's right around the corner are you ... by sigjuice on Friday August 04, 2017 @09:10PM (#14933676)
There are many C interpreters.
Re:Ask HN: What tech that's right around the corner are you ... by exikyut on Friday August 04, 2017 @10:14PM (#14933869)
I'm aware of PicoC, Cling (nee CINT), and Ch (commercial), but that's only three. What others are there? I'm curious about canonical C interpreters as well as things that aren't quite interpreting C but are somehow related.
Re:Ask HN: What tech that's right around the corner are you ... by sigjuice on Friday August 04, 2017 @11:34PM (#14934090)
Here is another http://compcert.inria.fr

[08/2011] Release of version 1.9 of the Compcert C compiler. Novelties include a reference C interpreter and stronger semantic preservation results.

Re:Ask HN: What tech that's right around the corner are you ... by exikyut on Saturday August 05, 2017 @04:58AM (#14934867)
Oh, another C compiler! I like collecting these - thanks! :)

Question for anyone handing out unofficial legal opinions:

This one is dual-licensed. There are a small kerfuffle of custom licenses that say "no commercial use", but everything is also variously covered by the GPL (v2 or later), LGPL v3, and BSD 3-clause.

Ref: https://github.com/AbsInt/CompCert/blob/master/LICENSE

I'm curious if I could use this in a commercial setting if I perfectly comply with the various GPL and BSD licenses.

If I could, that could be a problem for this group, because the repo readme (at https://github.com/AbsInt/CompCert) explicitly states "this is not free software."

Re:Ask HN: What tech that's right around the corner are you ... by homarp on Saturday August 05, 2017 @12:30AM (#14934236)
tcc ?

https://bellard.org/tcc/ has:

C script supported : just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line.

Re:Ask HN: What tech that's right around the corner are you ... by exikyut on Saturday August 05, 2017 @04:52AM (#14934844)
Ah, I forgot tcc. Such an amazing system, so sad that development stalled.

FWIW, I think tcc compiles into RAM, then jmp-s to the result. Pretty much just eliminates the creation of an output file.

Re:Ask HN: What tech that's right around the corner are you ... by mark_edward on Friday August 04, 2017 @06:15PM (#14932807)
Do you genuinely not understand what they mean (that it produces binaries and isn't run in an interpreter or VM)?
Re:Ask HN: What tech that's right around the corner are you ... by mclehman on Friday August 04, 2017 @07:09PM (#14933122)
I think their aim was to highlight the distinction between a language and an implementation of that language and possibly argue that only a particular implementation should be referred to as compiled/interpreted.
Re:Ask HN: What tech that's right around the corner are you ... by sigjuice on Friday August 04, 2017 @09:16PM (#14933706)
What I understand is that they invented a language called Crystal. And they made a compiler for it. The phrase "compiled language" is not very meaningful. It is quite possible for someone to make a Crystal interpreter.
Re:Ask HN: What tech that's right around the corner are you ... by goatlover on Friday August 04, 2017 @10:02PM (#14933849)
Sure, but the goal of the language creator is to create a compiled Ruby-like language. As such, Crystal is by design meant to be compiled. Which is also the case for languages like C, C++, Go, etc.
Re:Ask HN: What tech that's right around the corner are you ... by sigjuice on Friday August 04, 2017 @11:49PM (#14934125)
What properties of C indicate that it is meant to be compiled? The word "compiler" does not appear in the ISO/IEC 9899:1999 standard (aka C99) in any meaningful way (there is just one sentence in a footnote).
Re:Ask HN: What tech that's right around the corner are you ... by goatlover on Saturday August 05, 2017 @12:16AM (#14934188)
That it's fairly close to assembly for a high level language, and most C that has ever been written has been compiled.
Re:Ask HN: What tech that's right around the corner are you ... by sigjuice on Saturday August 05, 2017 @12:27AM (#14934230)
Okay, but it still seems strange to claim compiled-ness as some sort of intrinsic property of a language.
Re:Ask HN: What tech that's right around the corner are you ... by goatlover on Saturday August 05, 2017 @01:05AM (#14934318)
It's more a general descriptive of languages designed with compilation in mind.