News for hackers. Stuff that matters.
Re:Red programming language 0.6.2: LibRed and Macros by sevensor on Monday March 27, 2017 @04:13PM (#13971283)
I've noticed that Red shows up on HN with some regularity, and it sounds interesting. But I don't really understand where it comes from or who it's meant for. The Red / REBOL community seems more than usually self-contained, although it's possible that it's because almost everybody involved is Czech, and I am not. It seems like most of the English-language resources for Rebol were written by one guy with a thing for really long website names like withoutwritingcode.com.
Re:Red programming language 0.6.2: LibRed and Macros by SwellJoe on Monday March 27, 2017 @04:41PM (#13971572)
REBOL was first built by Carl Sassenrath, who is probably best known for his work on the Amiga operating system. REBOL was cool, but happened when a half dozen similarly cool languages sprung up that also had the feature of being free and open source (while REBOL was proprietary and cost a little money).

REBOL had some novel ideas, and some shortcuts for some particular types of development making for strikingly concise code in some specific cases, and overall a nice design. I think it's neat that there's an OSS implementation, but I have so many other things on my todo list that I've never done more than give it a glance. I just don't see how I'd make productive use of it in the kinds of projects I do (given interop requirements I have).

Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Monday March 27, 2017 @04:53PM (#13971674)
Please give Red a look. It can run like Python or can be made compiled AOT to a tiny binary using a C like systems language that runs fast. You can call Red from C and possibly vice-versa (not sure bout the latter). It has an awesome REPL, amazing GUI DSL, is homoiconic like lisp for easy macros, and is OS/free. I'm not sure where this couldn't be used as it can be both super high level or very low level.
Re:Red programming language 0.6.2: LibRed and Macros by nickpsecurity on Monday March 27, 2017 @06:52PM (#13972543)
Ill add they have Red/System for low-level. Some kernel or server coders should try putting some code through it to see how it does.
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Monday March 27, 2017 @06:55PM (#13972563)
Fair enough, even if it is great, it won't have 30 years of optimizations like some C compilers, but hopefully it is still really fast.
Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Monday March 27, 2017 @07:11PM (#13972640)
The compiler doesn't optimize at all right now, but aims for simplicity. There was an article some time back about the best switches to use for most C compilers: compile for size. It often gave some of the best performance IIRC, the rationale being better cache use on chips.
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Monday March 27, 2017 @07:42PM (#13972797)
When will it optimize, or will it? I'd like to see some benchmarks on the main page for a couple of algorithms like Fibbonaci in both Red & Red System compared to a popular scripting language like Python and a popular office language like Java. I would hope Red is close to Python in speed and Red System to Java. Obviously it won't be yet, but performance is important and if it isn't a priority, I'll look elsewhere (note that I don't mean that negatively...I'm very impressed with the Red community, I just want to have my 1929 Latour with my Kobe beef riding in my personal spaceship alright ;) ). Forgive me.
Re:Red programming language 0.6.2: LibRed and Macros by pekr on Tuesday March 28, 2017 @01:03AM (#13974221)
I am not a profi coder, mostly a self community coordinator, but am with Rebol and Red since its beginning, so I do remember, what was said, and what not. As for the optimisation, recently a generated exe is kind of cca 4 times slower than C, if I remember correctly. With optimisations, it was said we should get into 1.5-2 territory, whereas anything below such numbers, would require quite extensive work. Please Red gurus correct me, if I remember it incorrectly ...
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Tuesday March 28, 2017 @06:47AM (#13975492)
I could easily live with 1/2 C's speed with Red's power. That is reasonable.
Re:Red programming language 0.6.2: LibRed and Macros by nickpsecurity on Monday March 27, 2017 @09:18PM (#13973190)
You're focing a lot on just one point. Many people will sacrifice ultra-optimization or even optimization itself for productivity and flexibility. There's whole industries dedicated to it.

A cheat, though, would be extracting lowest-level form to C to leverage their compilers. Lots of languages did that.

Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Tuesday March 28, 2017 @06:52AM (#13975526)
Agreed, but those languages aren't trying to be a "Full-Stack" language. With great power...blah blah you get the point ;)
Re:Red programming language 0.6.2: LibRed and Macros by nickpsecurity on Tuesday March 28, 2017 @09:07AM (#13976203)
PreScheme, Nim... Very powerful. Compiled to C for performance.
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Tuesday March 28, 2017 @09:18PM (#13982452)
Yea, kinda see what you're saying, but not 100% at least with Nim. It has a nice high level syntax, but no REPL shell, so not quite as high level as Red. Using on Windows also requires MinGW, which is kind of hacky.
Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Monday March 27, 2017 @08:17PM (#13972932)
As you know, benchmarks are often fun but just as often meaningless. And premature optimization being the root of...anyway. ;)

It may come. JIT is planned. I don't know of any language that wants to be slow, and I can only speak for myself, but I think Red's goal is one of overall performance. In 1991, people told me I couldn't use VB, because it was too slow. I countered that my app would be 12-18 weeks faster than their C app. :) Still, this is 2017 and we have options.

Red won't be fast enough for everyone, or everything. But it will be faster than a lot of alternatives for many purposes. What kind of stuff do you need maximum performance for, how much of your work is that, and what are some of your real-world examples and performance criteria? I work best with concrete examples.

Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Monday March 27, 2017 @10:44PM (#13973627)
One of the things that initially excited me was being able to write code like Python for parsing and automating office tasks and then dropping down to RedSystem for numerical work like matrices and various algorithms and perhaps some embedded work like talking to an arduino. If it could truly do that, I'd give up needing to know 9 languages depending on what I'm doing.
Re:Red programming language 0.6.2: LibRed and Macros by vanderZwan on Tuesday March 28, 2017 @06:02AM (#13975332)
Except for the embedding part, Julia is pretty good for all other purposes already, isn't it? And I say this as someone who is excited by both Red and Julia.
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Tuesday March 28, 2017 @06:34AM (#13975448)
Julia is pretty cool,especially on the numerical side and it does have macros although I bet Red's are more powerful being homoiconic. Julia has a JIT using LLVM which is fast & neat, but it doesn't compile down to a binary exe to my knowledge.
Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Tuesday March 28, 2017 @12:57AM (#13974198)
That is exactly its goal.
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Tuesday March 28, 2017 @06:45AM (#13975486)
Awesome. That's why I hope the System code is fairly fast, because compilation won't matter if it is still super slow. If y'all do a version on the JVM you get fast, but also a bloated dependency and then you're not much different than anything else with a JVM backend (Scala, Clojure, Groovy, Perl6, PicoLisp...etc). I really am excited by Red btw. Hopefully performance can be a thing at some point before 1.0. The Perl6 people released their 6.0c (basically 1.0) where the language is mostly frozen, and are now spending 90% of development time on optimizations (honestly I pulled that number out of my butt, but the ratio is in that favor) because it is so slow for most things currently. I'm not sure if that was smart as now people are thinking"I waited 15 years for this?". Overall another great language I'd happily throw away Python for, but it has some work to do before I can really use it. I hope Red doesn't fall into the same trap.
Re:Red programming language 0.6.2: LibRed and Macros by thinline on Tuesday March 28, 2017 @05:39PM (#13980952)
You might also want to look at ren-C (https://github.com/metaeducation/ren-c), a fork of the open sourced Rebol 3 (which isn't an active repo). It can be build with an embedded TCC so you can write C in-line for functions where you need a speed boost.
Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Tuesday March 28, 2017 @12:12PM (#13977833)
One of the nice things about Red is the low barrier of entry, for experimenting and getting a taste. If you can drop an EXE somewhere, you can run it and try things. If you can run "red -c ..." you can compile and include Red/System code.
Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Monday March 27, 2017 @09:34PM (#13973277)
Per Nick's comment, above, Red likely won't generate C, because that would add a dependency on a C toolchain. Red is completely self-contained, and would like to stay that way. However, you could write those tight bits in C and put them in a DLL or something, to call from Red.
Re:Red programming language 0.6.2: LibRed and Macros by throwaway7645 on Tuesday March 28, 2017 @06:48AM (#13975500)
Also very nice. If I added a C dependency like GSL as a DDL, Red could compile a binary using it?
Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Tuesday March 28, 2017 @12:16PM (#13977882)
It has an FFI, but no static linking to C libs at this time. Not sure if that will come, but technically it's possible, as Red's linker is written in Red/System. I'm a huge fan of Pieter Hintjens' work, and have written lots of code generators and FSM stuff, inspired by GSL and Libero.
Re:Red programming language 0.6.2: LibRed and Macros by soapdog on Monday March 27, 2017 @06:17PM (#13972328)
Circa 1999 REBOL was our language of choice at our tiny company. It allowed our small team to develop faster than our competitors. We still did a ton of PHP and Java because our clients required it but lots of our internal tools were REBOL based and were quite pleasant to use and extend.

I have been following Red from a distance waiting for it to be ready for the kind of usage I want to put it through (mostly small desktop apps). I think that Red / REBOL are among the most fun languages to use for personal projects.

PS: Brazilian, not Czech...

Re:Red programming language 0.6.2: LibRed and Macros by vanderZwan on Tuesday March 28, 2017 @06:07AM (#13975357)
Is Brazilian CompSci culture relatively oriented towards embeddable languages? Lua and Céu come from there too. Might explain the adoption rate of Red.
Re:Red programming language 0.6.2: LibRed and Macros by soapdog on Tuesday March 28, 2017 @09:30AM (#13976379)
I don't think we can say that Brazilian CompSci is oriented towards embedding. I studied at the university where Lua and Céu were created, so my personal experience is biased towards such languages and yet, I don't remember us focusing on the embedding part.

Our REBOL experience was also not related to embedding but towards expressiveness and quick prototyping.

I think I expressed myself badly, when I said "Brazilian, not Czech", I was just referring to myself, as a new non-Czech datapoint :-D, Red is not Brazilian.

Re:Red programming language 0.6.2: LibRed and Macros by pekr on Monday March 27, 2017 @04:45PM (#13971602)
Not everybody is from Czech, but I am. History of Red comes back to the Rebol era, which goes back to the Amiga era and AmigaOS author, Carl Sassenrath, who created Rebol. Czech Amiga scene had strong following, hence some ppl ended up following Carl and his Rebol. We moved on onto Red, which is strongly inspired by Rebol ...
Re:Red programming language 0.6.2: LibRed and Macros by dragonwriter on Monday March 27, 2017 @04:19PM (#13971354)
> The Red / REBOL community seems more than usually self-contained, although it's possible that it's because almost everybody involved is Czech, and I am not.

REBOL being proprietary when the big F/OSS scripting languages were taking off in popularity was probably a problem for mindshare and community breadth.

Re:Red programming language 0.6.2: LibRed and Macros by pebblexe on Monday March 27, 2017 @04:26PM (#13971436)
I remember reading somewhere that there is funding/support from China. I can't find any support for that.

I stumbled upon this site in my search though http://red.reb4.me/

Re:Red programming language 0.6.2: LibRed and Macros by greggirwin on Monday March 27, 2017 @05:46PM (#13972093)
Yes, Team Red (as I like to call them), got some funding from a tech incubator, and Red's creator became Entrepreneur-in-Residence there for a time.
Re:Red programming language 0.6.2: LibRed and Macros by vram22 on Tuesday March 28, 2017 @12:31PM (#13978043)
This link has all the links from red-lang.org that were posted on HN:

https://news.ycombinator.com/from?site=red-lang.org

And from that I saw:

http://www.red-lang.org/2015/01/dream-big-work-hard-and-make...

which mentions the funding etc.

Re:Red programming language 0.6.2: LibRed and Macros by mapcars on Monday March 27, 2017 @04:36PM (#13971522)
At least some part of the Red team works from China, that's true. And looks like you found an old website :)