Lorem ipsum dolor sit amet, consectetur adipiscing elit | Nam nec convallis purus | Curabitur urna mauris, facilisis ut scelerisque viverra, facilisis nec nunc |
---|---|---|
Nulla facilisi | Sed vehicula, sapien et consectetur vulputate, turpis ipsum viverra sem, in efficitur quam erat sit amet ligula |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
allow-types: function [word [any-word!] types [block!]] [ | |
obj: context? word | |
map: third find body-of :obj/on-change* 'type-checker | |
put map word func reduce [to word! word types] [] | |
] | |
restrict: function [types [block!] 'word [set-word!] value [any-type!]] [ | |
allow-types word types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ | |
id: #01 | |
desc: "" | |
input: "a,b,c" | |
goal: ["a" "b" "c"] | |
hint: "" | |
dial-status: correct | |
dial-solution: {","} | |
dial-tries: [23-Dec-2021/19:00:43+03:00 {","}] | |
ref-status: correct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
;--- IRRELEVANT CODE --- | |
;--- IF IT DOESN'T CRASH TRY DUPLICATING SOME OR REMOVING ---- | |
assert: function [contract [block!]][ | |
set/any [cond msg] reduce contract | |
unless :cond [ | |
print ["ASSERTION FAILURE:" mold/part contract 100] ;-- limit the output in case we have face trees or images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
#include %assert.red | |
#include %keep-type.red | |
#include %composite.red | |
#include %map-each.red | |
#include %format-number.red | |
#macro [#print string!] func [[manual] s e] [insert remove s [print #composite] s] | |
word-id: routine [word [any-type!] return: [integer!] /local w] [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
speed: 50 | |
rt: rtd-layout [{ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}] | |
rt/font: make font! [name: "Colonna MT" size: 100] | |
rt/size: 99999x999 | |
rt/size: size-text rt | |
draw: compose/deep [scale 0.5 0.5 [pen cyan text 0x20 (rt)]] | |
draw2: compose/only/deep [translate 0x0 (draw) translate (rt/size * 1x0 / 2) (draw)] | |
t0: now/precise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [needs: view] | |
img: draw 4000x2000 [scale 2 2 fill-pen yello circle 1000x500 1000 500] | |
lag: object [max: avg: 0.0] | |
offset: 0x0 | |
plot: [] | |
system/view/auto-sync?: off | |
view/no-wait [ | |
below |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [title: "reactivity benchmark" needs: view] ;) run as `red --cli ...` to eliminate GUI console influence! | |
do https://gitlab.com/hiiamboris/red-mezz-warehouse/-/raw/master/clock.red | |
do-unseen: function [code [block!]] [ | |
old: system/view/auto-sync? | |
system/view/auto-sync?: no | |
do code | |
system/view/auto-sync?: old | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [title: "reactivity benchmark"] ;) run as `red --cli ...` to eliminate GUI console influence! | |
do https://gitlab.com/hiiamboris/red-mezz-warehouse/-/raw/master/clock.red | |
recycle/off | |
print-count: does [ | |
attempt [print ["relations count:" (length? system/reactivity/relations) / 4]] | |
attempt [print ["relations count:" system/reactivity/relations-count]] | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [title: "reactivity benchmark" needs: view] ;) run as `red --cli ...` to eliminate GUI console influence! | |
do https://gitlab.com/hiiamboris/red-mezz-warehouse/-/raw/master/clock.red | |
do-unseen: function [code [block!]] [ | |
old: system/view/auto-sync? | |
system/view/auto-sync?: no | |
do code | |
system/view/auto-sync?: old | |
] |