Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:19
    @PeterWAWood banned @TimeSeriesLord
  • Aug 13 2016 03:23
    @PeterWAWood banned @Vexercizer
viayuve
@viayuve
send me all zip it first
Vladimir Vasilyev
@9214
@GalenIvanov could you please drop your 0.6.4 toolchain executible here and see what happens?
Ah, sorry, it won't work with automated builds. Try stable instead.
GalenIvanov
@GalenIvanov
@9214 Which file do I need to drop there? The compiled gui executable?
Vladimir Vasilyev
@9214
The toolchain.
GalenIvanov
@GalenIvanov

@9214 I downloaded again the stable release 0.6.4; the result is: `OK

Red Toolchain 0.6.4 for Windows by Red Language`

Vladimir Vasilyev
@9214
Have you checked Defender quarantine list?
Is there anything suspicious in executable properties?
GalenIvanov
@GalenIvanov
Yes, I checked the quarantine list - it's emtpy. I don't see anything suspicious
viayuve
@viayuve
does new guy console opens up for you?
*GUI not guy
GalenIvanov
@GalenIvanov
@viayuve No, it doesn't. --cli also crashes
viayuve
@viayuve
have you tried elevated mode with red toolchain
GalenIvanov
@GalenIvanov
No I didn't. How it is run?
Vladimir Vasilyev
@9214
There's no need in any elevation.
viayuve
@viayuve
okay
@GalenIvanov send me files I would like to test
Vladimir Vasilyev
@9214
@GalenIvanov does anything appear in task manager?
GalenIvanov
@GalenIvanov
No, I checked - no traces of Red
Vladimir Vasilyev
@9214
@GalenIvanov I've run out of ideas. As a last resort, compile console either on your other machine or from sources.
GalenIvanov
@GalenIvanov
@9214 Thank you, I'll try to compile it.
Vladimir Vasilyev
@9214
That won't give you a fully functional toolchain though, only an interpreter.
Or maybe not... perhaps you can compile with it even without building a console.
GalenIvanov
@GalenIvanov
I think I tried it yesterday - it compiled the file succesfully, I'll give another try now
Luis Vale Mendes
@lpvm
Hi, I'd like to traverse from #"a" - #"z" in order to use the character to perform further operations. How to do this, besides manually creating a block of [#"a" #"b" ...]? Thought of bitset! as in chars: charset [#"a" - #"z"], but don't seem to be able to traverse it.
Vladimir Vasilyev
@9214
@lpvm see here.
Boleslav Březovský
@rebolek
@lpvm why not just using simple loop?
Vladimir Vasilyev
@9214
>> unfold [#"a" - #"z"]
== "abcdefghijklmnopqrstuvwxyz"
Boleslav Březovský
@rebolek
>> repeat i 26 [prin #"`" + i]
abcdefghijklmnopqrstuvwxyz
Vladimir Vasilyev
@9214
@rebolek there are multiple bugs in your code. Here's the correct version:
forever [prin "e"]
Luis Vale Mendes
@lpvm
@9214 Your solution is good, but elaborated! Haven't looked yet to the spec word.
Vladimir Vasilyev
@9214
spec word..?
Luis Vale Mendes
@lpvm
sorry, it's the parameter. But found something about spec-of my confusion.
Boleslav Březovský
@rebolek

@9214 do you mean

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee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ebolek I'll pass your case to our CEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEO @toomasv, he should fill you in.
Boleslav Březovský
@rebolek
I see that Gitter still has not proper colorizer for my reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed language
Luis Vale Mendes
@lpvm
@rebolek Thanks, I should have thought in this one!
nedzadarek
@nedzadarek
@toomasv @meijeru do I have to run in some special way or something? I just opened the Red gui console (0.6.3 26-Mar-2018 & 0.6.4) and here is an output:
do %sample.red
; 40 + 2 =  42
#include %sample.red
; == %sample.red
print read %sample.red
; Red[]
; print ["40 + 2 = " 40 + 2]
Vladimir Vasilyev
@9214
@nedzadarek preprocessor doesn't work in console. #include is just an issue! value.
nedzadarek
@nedzadarek

@9214 So I wonder why @meijeru said:

In fact, #include is more flexible, since it is handled like do by the interpreter.

Vladimir Vasilyev
@9214
>> expand [#include %foo.red]
[do %foo.red]
== [do %foo.red]
Because he meant script files, not REPL.
nedzadarek
@nedzadarek

@9214 ah, so, he mean something like this:
in the the repl:

do %file1.red

%file1.red:

#include %file2.red

%file2.red:

Red [] print 42
Thank you for clarifications.
spTorin
@spTorin
@lpvm If you need block of chars:
char-block: function [spec][
  cs: charset spec
  collect [
    repeat i length? cs [
      if cs/:i [keep to char! i]
    ]
  ]
]

abc: char-block [#"a" - #"z"]
== [#"a" #"b" #"c" #"d" #"e"...
Vladimir Vasilyev
@9214
@spTorin how is it different from what I've posted?
spTorin
@spTorin
@9214 unfold - return not block
Luis Vale Mendes
@lpvm
@spTorin Thanks.
Vladimir Vasilyev
@9214
>> take body-of :unfold
== rejoin
>> unfold [#"a" - #"z"]
== [#"a" #"b" #"c" #"d" #"e" #"f" #"g" #"h" #"i" #"j" #"k" #"l" #"m" #"n" #"o" #"p" #"q" #"r" #"s" #"t" #"u" #"v" #"w" #"x" #"y" #"z"]
>> insert body-of :unfold 'rejoin
== [collect [
    repeat index length? bits: charset spec [
        if bits/:index [keep to char! index]
    ]
]]
>> unfold [#"a" - #"z"]
== "abcdefghijklmnopqrstuvwxyz"
Toomas Vooglaid
@toomasv
thru: make op! function [a b][
    ac: copy [] nx: a 
    inc: either percent? a [1%][1]
    op: get pick [+ -] a < b 
    cmp: get pick [> <] a < b 
    collect/into [until [keep nx nx: nx op inc nx cmp b]] ac
]
#"a" thru #"z"
;== [#"a" #"b" #"c" #"d" #"e" #"f" #"g" #"h" #"i" #"j" #"k" #"l" #"m" #"n" #"o" #"p" #"q" #"r" #"s" ...
rejoin #"a" thru #"z"
;== "abcdefghijklmnopqrstuvwxyz"
rejoin #"z" thru #"a"
;== "zyxwvutsrqponmlkjihgfedcba"
1 thru 10
;== [1 2 3 4 5 6 7 8 9 10]
10% thru 1%
;== [10% 9% 8% 7% 6% 5% 4% 3% 2% 1%]
00:59:50 thru 1:00
;== [0:59:50 0:59:51 0:59:52 0:59:53 0:59:54 0:59:55 0:59:56 0:59:57 0:59:58 0:59:59 1:00:00]
length? 2018-12-31 thru now
;== 20