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
Gregg Irwin
@greggirwin
@nedzadarek what are you referring to?
nedzadarek
@nedzadarek
@greggirwin ah, I am sorry. It was meant to be answer for @giesse
lepinekong
@lepinekong_twitter
@nedzadarek actually people are fed up of heavy weighted server/frameworks of the past like Apache, Tomcat (or Cheyenne Web Server in rebol), that's why they loved when nodejs appears with its very lightweight server that they can start in no time for example a quick prototype. Then when needed they can add expressjs very easily. The server alone won't make it a breakthrough but without it, you cannot even hope to interest the majority. To make a breakthrough it should be able to be async and compete with performance and robustness of nodejs.
This is general trend people gives up heavy weigthed tools, servers etc.for example Visual Studio or Eclipse are left for VSCode when possible (if Red was able to make an even lighter editor than VSCode with same kind of plugin architecture I'm pretty sure it would have huge success also ;)).
lepinekong
@lepinekong_twitter
As for mobile doing android if not followed by ios is rather useless: clients spend 4 times more on ios than on android, companies are looking for tools to develop on both at the same times, that's why there are switching to reactnative, so if red strategy is to develop for android, it should be followed by ios hobbists will be interested not companies. Now if red only target hobbysts or a tiny number of companies fine but say it loud so it's clear.
If Android and ios stuffs are really pro, that companies are ready to pay.
Greg T
@gltewalt
There are many other humans who have considered these things, and more.
viayuve
@viayuve
issue - red console stops working after some time and it does interrupt - restart and shutdown sequence because of "not responding" situation "force quit" does not work either. on mac for me only solution is to shut it down using power button.
Greg T
@gltewalt
Can you kill the process from Terminal?
viayuve
@viayuve
nop
i do have very long event log
Greg T
@gltewalt
Something like kill -9 console-*
viayuve
@viayuve
Date/Time:       2019-02-19 03:29:08 +0530
End time:        2019-02-19 03:29:10 +0530
OS Version:      Mac OS X 10.14.3 (Build 18D109)
Architecture:    x86_64h
Report Version:  27

Data Source:     Stackshots
Shared Cache:    0x1f672000 E4B3A94D-55C0-393C-A126-2603E9F8FC4E
Shared Cache:    0 0822F2B8-73B6-3640-8E91-04395E27F608

Command:         console-2019-2-4-67544
Path:            /usr/lib/dyld
Version:         ??? (???)
PID:             609

Event:           hang
Duration:        1.70s
Steps:           17 (100ms sampling interval)

Hardware model:  MacBookPro14,3
Active cpus:     8

Time Awake Since Boot: 24000s
Time Since Wake: 13000s

Fan speed:       2155 rpm
viayuve
@viayuve
still there
still not responding i mean can not kill wow looks like have to use power button.
Gregg Irwin
@greggirwin
@lepinekong_twitter, are you intentionally ignoring me?
viayuve
@viayuve
now I think, I must hold my horses before I move app to production server.
in windows it works, in mac it does hang up and stop other triggers.
Greg T
@gltewalt
@viayuve Can you move your info to red/bugs so gurus can help investigate?
viayuve
@viayuve
how can i identify what is causing me issue ?
okay @gltewalt
Gabriele Santilli
@giesse
@nedzadarek Red barely existed when I started with Topaz. Not to mention, I had a proof-of-concept R2-like interpreter written in Javascript around 2007.
Contrary to Red, Topaz did not have REBOL compatibility as a goal, so it has a number of major differences.
In any case, the idea of a REBOL-like or REBOL-inspired language running in the browser (or any other platform with a JS VM of any sort) is anything but new, and has been historically very unpopular.
Petr Krenzelok
@pekr
unpopular? I can easily claim, that Rebol's non presence in a browser is one of its failures.
nedzadarek
@nedzadarek
@giesse I see, thank you for the information.
Gabriele Santilli
@giesse
@pekr, unpopular with this crowd at least :)
GiuseppeChillemi
@GiuseppeChillemi

What should I expect using context?

If I use it on an object word I get ?function?. This is not so meningful to me.
I ask it beacuse I wish to find which functions returns what: I wish to compare if the context of words inside block is the same of the result when using extract, or contexts of words passed between funtions, or if words setted into a foreach loop maintain the context of the foreach block argument.

hiiamboris
@hiiamboris
you're probably using it not on object's word but on it's associated value
GiuseppeChillemi
@GiuseppeChillemi
AA: 1
Context? 'AA
( pardon, I am in mobile )
hiiamboris
@hiiamboris
>> o: object [w: 123  probe context? 'w]  ()
make object! [
    w: 123
]
no function as you can see
can't tell you more without seein the code
Toomas Vooglaid
@toomasv
@GiuseppeChillemi Or, if you have bound words somewhere else, e.g.:
a: [b]
o: object [b: 2]
bind a o
context? a/1
;== make object! [
;    b: 2
;]
GiuseppeChillemi
@GiuseppeChillemi
@toomasv Yesterday it was too late. I was using PRINT instead of PROBE to get the context.
Boleslav Březovský
@rebolek
Careful with that, print evaluates
GiuseppeChillemi
@GiuseppeChillemi
@toomasv I still not undestand how to get the context of a word inside a block.
@rebolek Yes, I have discovered it with long consolle output !
Toomas Vooglaid
@toomasv
@GiuseppeChillemi If you have bound words in the block, you can ask context? of these words, as in above example.
Also:
>> a: [context? 'b]
== [context? 'b]
>> o: object [b: 2]
== make object! [
    b: 2
]
>> bind a o
== [context? 'b]
>> do a
== make object! [
    b: 2
]
Greg T
@gltewalt
If you’re wondering how to get the name that a value is set to... values are anonymous.
nedzadarek
@nedzadarek
@GiuseppeChillemi to add to @toomasv answer:
you just need to extract a word!. As Toomas noted, you can use /n syntax (arr: [a b c] arr/3; c) or using pick (pick [a b c] 3). You can evenfindit (first find [a b c] 'a`). As fair I remember, it's like any other way to extract values.
@toomasv has binding changed? I remember saving bindings (e.g. arr: [a b c] arr: bind arr context [a: 1 b: 2 c: 3]). I don't think it's necessary now.
Toomas Vooglaid
@toomasv
@nedzadarek No need to "save". Bindings are changed in-place. But you can bind a (deep) copy with bind/copy.
nedzadarek
@nedzadarek
@toomasv I see.
@toomasv @GiuseppeChillemi As fair I know bind binds any-word!:
>> arr: [a a: 'a :a] 
== [a a: 'a :a]
>> reduce to-word probe first (bind arr context [a: 42])
a
== 42
>> reduce to-word probe second (bind arr context [a: 42])
a:
== 42
>> reduce to-word probe third (bind arr context [a: 42])
'a
== 42
>> reduce to-word probe fourth (bind arr context [a: 42])
:a
== 42
GiuseppeChillemi
@GiuseppeChillemi
Here:
y: [b c d]
probe context? y/1
I expected a result from context? but basically I was wrong. I supposed B has some context
Boleslav Březovský
@rebolek
But there is result.
Also,
>> equal? system/words context? y/1
== true
nedzadarek
@nedzadarek
@GiuseppeChillemi don't probe it - main context is huge to print
GiuseppeChillemi
@GiuseppeChillemi
@rebolek , yes there is a result.

Also I expected a result from:

z: make object! [b: 0 c: 1 d: 2]
probe context? z/1

But I get an error

*** Script Error: cannot access 1 in path z/1
*** Where: context?
*** Stack: probe 
>>
Boleslav Březovský
@rebolek
z is object, there's no z/1