« first day (2181 days earlier)      last day (1599 days later) » 

2:25 PM
Currently FOR-EACH and EVERY are synonyms except for their return result. FOR-EACH returns the last value the loop body evaluated to, and EVERY acts like ALL... so it tracks if the body returned a "truthy" value for each iterative result, and if so returns the last truthy result.
I have wondered if EVERY might be a little more useful if it did soft quoting. So b: <something> | every x [a (1 + 2) :b] [probe x] would print out a, 3, and <something>.
Whereas for-each x [a (1 + 2) :b] [probe x] would give you a, (1 + 2) and :b.
@rgchris @MarkI, others who participated in FOR-EACH and EVERY debates... ^-- opinion?
I feel like a soft-quoting for-each-like construct would be helpful. I seem to need it a lot.
Of course you could always just every x compose [a (1 + 2) (b)] [...]. Slightly less efficient, as it has to create an intermediate input block.
 
3:30 PM
@sh
^-- aborted post ;-)
 
Complete post for @ShixinZeng ... one thing to consider is that in my contemplation of how to do background threads for garbage collection, I don't think it will be feasible to do without building the code as C++ (assuming it can be done feasibly even then). This would affect user natives built as C. So I guess while a user native runs, it would have to freeze the background GC, and start it back up when it is done.
 
3:46 PM
@ShixinZeng @HostileFork trying steps listed in :github.com/metaeducation/ren-c/wiki/Building-Ren-C-with-CMake found error:
Scanning dependencies of target libtcc
[ 2%] Building C object tcc/CMakeFiles/libtcc.dir/libtcc.c.o
In file included from /B/Prog/ren-c/external/tcc/libtcc.c:21:0:
/B/Prog/ren-c/external/tcc/tcc.h:42:27: fatal error: sys/ucontext.h: No such file or directory
# include <sys/ucontext.h>
 
3:58 PM
@giuliolunati are you cross-compiling?
 
I literally followed https://github.com/metaeducation/ren-c/wiki/Building-Ren-C-with-CMake
cmake step terminate with:
system_processor: armv7-a
TCC_NATIVE_DEFINITIONS: TCC_TARGET_ARM;TCC_ARM_VERSION=7;TCC_ARM_EABI;TCC_ARM_HARDFLOAT;TCC_ARM_VFP;EMBEDDED_IN_R3
HOST: Linux-4.4.0-38-generic SYSTEM: Android-1
cflags: -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG
Extra compile flags:
-- Configuring done
-- Generating done
-- Build files have been written to: /B/Prog/ren-c/build
 
>> #{FFF000} and #{F0F0F0}
 
; Brought to you by: try.rebol.nl
== #{F0F000}
 
>> intersect #{FFF000} #{F0F0F0}
 
; Brought to you by: try.rebol.nl
== #{F0}
 
4:12 PM
I know it has been discussed before, but the only reason we can't make prefix arithmetic AND (infixed **and* in Ren-C) equivalent to INTERSECT is the above example. That is to say, that INTERSECT on numbers treats it as an intersection of the bits in an AND-y way, but when you get a BINARY! it thinks of it as a "set of bytes".
It seems to me that if you INTERSECT two integers and you "AND their bits" that intersecting two binaries, then ANDing their bits is reasonable; although it does ask how different lengths should be treated. Zero extend?
I'd think it more common you want to AND binaries together than treat them as sets of bytes and see which bytes they had in common, in any case.
 
@giuliolunati could you do a "make VERBOSE=1" and show me the command and error?
 
[ 2%] Building C object tcc/CMakeFiles/libtcc.dir/libtcc.c.o
cd /B/Prog/ren-c/build/tcc && /opt/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -DANDROID -DEMBEDDED_IN_R3 -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VERSION=7 -DTCC_ARM_VFP -DTCC_TARGET_ARM -isystem /opt/android/android-ndk-r9b/platforms/android-16/arch-arm/usr/include -isystem /opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/include -isystem /opt/android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -isystem /opt/an
@ShixinZeng (thanks for helping me...)
 
@giuliolunati could you run "find /opt/android/android-ndk-r9b/platforms/android-16/arch-arm/usr/include -name ucontext.h"?
 
@ShixinZeng none found. So maybe I must switch to more recent android-ndk...
 
probably
 
4:21 PM
@giuliolunati Before you trouble yourself too much and disrupt your system, you might ask a StackOverflow question about it.
 
on my system, it says:
$ find /opt/android-ndk/platforms/android-16/arch-arm/usr/include/ -name ucontext.h
/opt/android-ndk/platforms/android-16/arch-arm/usr/include/sys/ucontext.h
/opt/android-ndk/platforms/android-16/arch-arm/usr/include/ucontext.h
 
@ShixinZeng and your android-ndk version is?
 
@giuliolunati r13-1
 
@HostileFork Probably I'm masochistic ;-)
 
@giuliolunati You do develop on the phone... so it would seem so!
 
4:24 PM
Amanuel is baaaaccckkk ;)
 
@ShixinZeng thanks, I'll try it!
 
Im probably gonna learn a new lang just for da hell of it.. But Rust or Rebol?
 
@HostileFork definitely! :-) :-)
 
@giuliolunati maybe ANDROID_NATIVE_API_LEVEL=16 is too high for your ndk?
 
@ShixinZeng maybe. However shortest way seems to update to r13-1.
 
4:27 PM
@Dsafds Learn what interests you. And I'd suggest bringing one thing to a state of suitable completion before starting another. If you're going to work on an OS, get it to the point where you have enough to say about it you can write an article that might teach someone something. Have it on hand to show people what you've learned, will come in handy for future job interviews etc.
We're here to support those with serious interests in Rebol or Red, answer the Q&A, etc. if you decide it interests you.
Protip: don't be like this guy.
 
@giuliolunati I think the ndk version is r13, 'r13-1' is the Arch package version, sorry about that
 
@ShixinZeng NP,
 
@HostileFork Protip , that guy is the best (Not)
@HostileFork Nono you dont understan
In my OS I will use C++ Obviously @HostileFork , but i cant setup linux shell and osdev enviorment to code in school since needs admin mostly. So i just learn new lang to have fun in school , or improbve in C++
 
4:45 PM
@Dsafds Again, it just depends. One aspect of working with Rebol, being implemented in C-buildable-as-C++, is that if you found it interesting you could start looking into helping with the implementation. And there are people here you could learn things from, if you were so inclined. There are few enough people working on it that it doesn't take much to become a "contributor of significance".
 
posted on October 20, 2016 by hostilefork

TASK! was an unfinished feature of R3-Alpha. The basic idea was that one would be able to do something like a MAKE OBJECT! in which the object's context variables would be isolated to itself... and it would run on an independent thread. Rebol's performance story depended on reuse of several large preallocated global buffers. So the plan had been to use thread-local storage (a feature n

 
@HostileFork Yea but not many are working on Rust either am i correct? I guess im gonna learn both to have a very wide knowledge in other langauges but i am dedicated to C++ At same time.. So i will do Rebol and Rust in fun time at school
First of all should i learn Red or Rebol? Which one is the newer one?
 
@Dsafds They're both under "current" development. Red has more people active working on it on a day-to-day basis, though not by a tremendous amount. If you're a user of the language, the differences are subtle...but Red is seeking to be more like Rebol2 while the current Rebol branch (we've been calling "Ren-C") is trying to evolve the language to be more correct/coherent, at the cost of backward compatibility with Rebol2.
From an implementation point of view, Red is not using any C or C++. It is written in Rebol2, and aims to bootstrap to its own "C-like" systems language. I've sent you the spec for it before: static.red-lang.org/red-system-specs-light.html#section-2
 
@HostileFork Ok man ima look at it and tell you what i think about it
 
4:55 PM
@Dsafds You can watch this introductory video to Red (YouTube lets you speed up videos to 2x etc, which I find is usually fine to help watch faster): youtube.com/watch?v=-KqNO_sDqm4
 
 
2 hours later…
6:56 PM
@HostileFork is REBARR returned from Alloc_Singular_Array safe to be killed by calling Free_Series? It seems that the REBVAL is not initialized, and Kill_Series will fail at github.com/metaeducation/ren-c/blob/master/src/core/…
I see most of the calls to Alloc_Singular_Array are followed by a SET_BLANK(ARR_HEAD(a))
 
7:35 PM
@ShixinZeng Terminology-wise I've gone with "Make" to mean something is valid/complete, and "Alloc" to mean uninitialized and more work needs to be done. If you do a Make_Block with capacity 1 you will get the singular optimization and it will have an end marker in the cell. So Alloc_Singular just avoids the double terminate.
Free_Series expects good non-trash data (at least as a sanity check in the debug build, but there may be release reasons now or in the future)
 
@HostileFork OK, then I think this commit is correct
 
Yup, sounds good.
 
; Brought to you by: try.rebol.nl
; rebol.com/r3/docs/errors/access-no-scheme.html
    *** ERROR
** access error: missing port scheme: https
 
May I inquire as to how I might convince our dearest to accept github'ed code?
 
; Brought to you by: try.rebol.nl
; rebol.com/r3/docs/errors/access-protocol.html
    *** ERROR
** Access error: protocol error: "Server error: HTTP/1.1 404 Not Found"
 
@MarkI TryRebol doesn't do https, it runs R3 alpha. Used to be there was http support on rawgit as a proxy but you might have to look elsewhere now
 
@HostileFork I thought there was a way to get alpha to do https. I am probably misremembering.
Maybe it was a way to get it to do simple http? Or you just proved that that does work and I can't tell :(
 
@MarkI Atronix R3 can do https, which is implemented by Saphirion
 
 
3 hours later…
11:40 PM
Any progress on something to replace try.rebol? Is Kaj still around?
 

« first day (2181 days earlier)      last day (1599 days later) »