頗具內(nèi)涵的Red語言Logo
Red是一種可以運行于多種平臺的全棧語言,它的語法主要繼承于Rebol,同時在設(shè)計過程中借鑒了Scala和Lua的優(yōu)點 。作為一門全棧語言,Red既可以用于高層級的編程,如DSL(Domain Specific Language),也可用于低層級的編程,如設(shè)備驅(qū)動。
Red 0.5.4版本是一次重大的更新,帶來了大量的新特性。接下來他將支持GUI,也可能會支持DSL。
Red開始支持了一些新的datatype,包括:Pair! datatype、Percent! datatype、Tuple! datatype、Map! datatype等。
同時,它也支持了Set操作,主要有:
union: returns the union of two data sets.
exclude: returns the first data set less the second data set.
intersect: returns the intersection of two data sets.
difference: returns all the values which differ from two data sets.
unique: returns the data set with duplicates removed.
而這些操作可以應(yīng)用于這些datatypes:block!、string!、bitset!、typeset!。(注:會在下一個版本中支持 Hash! datatype)
New natives:as-pair、break、continue、extend。
New action:put。(注:PUT僅支持在map!中實現(xiàn),其它的支持請靜候未來版本)
New function:cause-error
Red/System additions:
添加New natives是為了更好地支持新的Red功能:
其它更新:
exit/return are now defined as natives instead of volatile keywords.
do can accept error! values.
parse and load are now more stable when errors are raised from parsing rules.
load errors handling greatly improved (no console exit on syntax errors anymore).
value? now supports any type, except unset! as argument.
fixed bugs and little improvement of help output.
minor Redbin speed and generated payload size improvement.
prin output in console fixed.
fixed Red/System's #get directive not working in some cases.
system/words now defined as an object!.
compiler now supports system/words/ prefix to access global context words.
many fixes and improvements on vector! datatype, especially on math operations.
color definitions are now available.
vector! unit tests significantly extended.
an op! used without arguments in the interpreter now reports an error.
pick and poke now accept a logic! value as index.
added missing comparison operators for vector!.
paths evaluation errors in interpreter are now more accurate.
first memory frame allocation increased from 512KB to 1MB.
fixed memory corruptions caused by function with refinements in interpreter.
division by zero now properly caught for floats.
last but not least, 44 bugs reported on Github's tracker fixed in this release!
項目遷移至Gitter
Red團隊認為Gitter雖然年輕,但前途不可限量,所以已經(jīng)將項目遷移至了Gitter,用GitHub賬戶也可直接登錄。
本站文章版權(quán)歸原作者及原出處所有 。內(nèi)容為作者個人觀點, 并不代表本站贊同其觀點和對其真實性負責(zé),本站只提供參考并不構(gòu)成任何投資及應(yīng)用建議。本站是一個個人學(xué)習(xí)交流的平臺,網(wǎng)站上部分文章為轉(zhuǎn)載,并不用于任何商業(yè)目的,我們已經(jīng)盡可能的對作者和來源進行了通告,但是能力有限或疏忽,造成漏登,請及時聯(lián)系我們,我們將根據(jù)著作權(quán)人的要求,立即更正或者刪除有關(guān)內(nèi)容。本站擁有對此聲明的最終解釋權(quán)。