« first day (1724 days earlier)      last day (2056 days later) » 

12:00 AM
(when using CALL from within r3.exe)
 
@moliad You are trying to start a new R3 instance from within a running R3 using CALL?
 
yes.
LAUNCH seems to do the same thing.
 
Wrap it in cmd /c.
Unless you actually want the parent and the child to communicate, but then I don't really know what you want to achieve and what you are surprised about.
 
I'm gussing its built as a windows app (i.e. not a console app)
 
If it were, then a new window would open even without cmd /c.
But no need to guess, %r3-g25033f8.exe from rebolsource.net is a console-mode executable.
 
12:08 AM
well why the error.. other apps, just run... they don't complain... why should R3 complain. I don't get why R3 complains about stdio or anything... strange.
 
Not sure if cmd /c alone is enough to open a new window, though. Maybe you need START on top of that.
@moliad Because the "other apps" you tried probably are no console-mode executables.
And, having no GUI yet, mainline r3.exe tries to make the best of it, and to proper stdio redirection. So that you can theoretically use it as a filter in a longer command-line invocation.
Even with a GUI, a proper console-mode executable will be something useful to have, even for Windows.
 
the idea is a script that launches other scripts... even 'LAUNCH craps out.
I want a console app... that is what I will be building for now. :-)
 
You mean a graphical Rebol console?
 
nope I have a rebol script, which is used to launch other rebol scripts. but it can't run any of them.
(btw CALL "cmd /c doesn't work)
(fwiw, the same script launches from R2)
 
call {cmd /c start r3-g25033f8.exe}
Seems to work fine for me and starts a second instance as you seem to want.
 
12:23 AM
but why need to invoke the cmd call.. I just want one script to execute another r3 session in its own process in job list. the flashing windows is highly annyoing. I don't get the current behavior... sorry if I seem dumb... well I feel a bit dumb :-)
(btw, I didn't use start in my first cmd /c attempt)
 
The "flashing window" is because the first R3 that you use to launch a second R3 process is a console-mode executable. A console-mode executable always brings up a console unless it already has one. That's Windows.
You can build a GUI-mode R3 which won't flash a console window under some circumstances. But that then has problems in other circumstances, such as when you want a console to actually type something into.
Windows is a world of compromises ...
3
But instead of spawning a second R3, maybe you could just DO your target script in the first R3 right away.
Or just live with the flashing window for a while, until we get full graphical builds with their own graphical console to support this particular family of Windows use-cases (at the expense of other use cases).
Just for the record: __has_builtin is actually, for once, a Clang extension and not a GCC thing.
TIL ...
 
@earl so basically we need to add all the R2 call fancyness back into R3 (/console /shell /show etc)
 
@moliad We actually need to improve (a lot!) upon R2's brokenness in that matter.
And parts of that are already in Ren/C as well, thanks to @ShixinZeng's diligent work.
>> ? call
USAGE:
	CALL command /wait /console /shell /info /input in /output out /error err

...
(Ren/C on Linux/x86/64)
 
12:39 AM
ah.. none of that on windows.
just /wait :-(
 
Ren/C, I said!
 
ah yes... sorry... mixed up. ok. 8-/
ok, will use R2 for now, and replace it with Ren/C once I get it to build. :-)
 
@earl If you missed my suggestion on /shell => github.com/metaeducation/ren-c/issues/19
 
@HostileFork Saw it, thanks.
Need to write up a reasoned response to that.
One major hassle is the divergence in calling interfaces in process creation.
Windows: a single "command-line" string.
POSIX: argv
We'll have to come up with a sensible cross-platform abstraction over that.
I'm leaning towards standardising something argv-like (i.e. a block with executable + arguments) a long with some gloss to transport that into a Windows world (join + some escaping).
And if we go that route, implied /shell for a single string would probably be a good idea.
I wouldn't drop /shell in that case, because there are other reasons than command-line splitting that you might want to use a shell (set up of a full environment, e.g.). And doing so abstracted over platform-specifics with /shell is still nice.
@moliad As that "once" may be "never", with your busy schedule, here's a 32-bit x86 console-mode Ren/C binary from current master pre-built for Windows: rebolsource.net/downloads/experimental/…
 
@earl cool thxs.. in fact this week I'm on vacation.. doing fun stuff I want to do instead of what I have to do :-)
 
12:49 AM
@moliad And here's a GUI-mode executable, if you want to compare differences: rebolsource.net/downloads/experimental/…
 
though If I get my toolchain working... that might force the issue of FINALLY forking all my code to R3 for our whole company.
 
(No warranties for the latter. GUI-mode combined with our console needs is ... flaky.)
 
no problem, just having them to test is nice... thx again :-)
 
 
2 hours later…
2:23 AM
yay, progress :-) finally got most of the project setup... am slowly sifting through the warnings and errors. also discovering and adding the few preprocessor switches I have to define in order to sort through the various code blocks. so far so good :-)
 
@moliad Ask questions if you have them.
 
quick question... how do you guys manage quieting inconsequential warnings, do you set them up in your dev setups, or have you tried to add them within the source codes on a per compiler/platform/whatever include? ex: I've got a IE64 to size_t warning in this case, its ok, its part of the encapping script size... which will never be larger than size_t. but the warning is annoying.
I can obviously quiet them in my dev env, or we can try to quiet them in the code directly using preprocessor #IFDEFS or per compiler pragmas...
I am pretty sure a lot of the warnings I will get are caused by different compiler reactions than what is the norm in GCC
 
@moliad I am not familiar with IE64. Is it a #define? What is the relevant line of code? (Best way to link is with persistent links on github to the commit you mean... if you click on a line and then press Y it will decorate the URL with the commit ID for copying)
 
sorry, I was being hasty... REBI64 to size_t (size_t will be 32 bits on an x86 build on msvc.)
 
Where is the size_t?
I think that worrying about encapped scripts and resources larger than 2^32 is probably not necessary at this point in time. Rebol's domain isn't really in the 4,000 MB space.
 
2:36 AM
within a macro which eventually resolve to OS_ALLOC_MEM which will be a 32 bit value.
exactly... though I like to remove warnings, with comments when they are , like in this case, inconsequential.
 
Line number and file?
 
host-lib.c(1446), host-lib.c(1452)
 
My feeling in this case is that the 64-bit size is just making trouble when the host API knows it is abstracting several 32-bit systems, and when the protocol is the size of a memory allocation to be returned.
Of all the "futureproofing" things that might be tackled, that's not one.
And a signed 64-bit integer, as well.
 
@HostileFork As to the topic of call... Do we really need it? Or is it something that might be better supported using a port model (making it more agnostic to either 'nix or windows), similar to how we can use ports now with files?
 
"Please malloc me enough space for a negative multi terabyte embedded script". Were I messing with it I'd just change it to a REBCNT and call it a day.
 
2:43 AM
A calling scheme so to speak.
 
But that requires changing both the Linux and Windows hosts.
@iceflow19 Yes, a call scheme is likely the correct way to do it, and @earl has said as much
 
@HostileFork I must have missed earl mentioning that.
 
@iceflow19 pertinent chat that I apparently wasn't reading.
@iceflow19 It was nearly a year ago
 
That would explain why I missed it then :)
 
@HostileFork my opinion too :-) there's just 6 references (in 4 files) to it in the whole code base, so its not a big deal to address.
 
2:50 AM
@moliad Well, I'd accept a PR that changed that to a REBCNT.
 
the only caveat is that for encapping, you may have very large scripts in 64 bits which have data embeded in them. I know I have one of 1.4GB in R2.
 
I'd start to wonder if encapping is really the solution you're looking for when your exe is that large.
 
so I'd actually make the change based on if the build is 64 bits or not, with a #define.
my app is an installer. so in that case yes.
 
The problem is that the hostkit is supposed to be invariant, a sort of "API stable". Now I actually have designs on essentially refactoring the whole thing around completely differently, because I do not think there is much "there". The extensibility model is all very hooky and doesn't provide a clear or useful "separation of concerns" (one of my favorite phrases)
"Orthogonal" is also one of my favorite words.
In recent years I've been using "Narrative" a lot.
I should make a new favorite words list for 2015
"Coherence" will be on it. :-)
 
I really love the other meaning for DoD ... domain of definition :-)
@HostileFork but it would it just logically follows the scaling from 32 to 64 bits. so its functionally invariant. if that's possible. ;-)
 
2:56 AM
When I was an intern at the "DMA" (defense mapping agency), there was a directory of all the various departments. My favorite was DISCO - the Defense Industrial Security Clearance Office. It seems they've changed the name or been integrated.
@moliad Well it's hard for me to defend a model or say what to do or not do when I don't really have a strong urge to defend what's there. The code is there in various places and that code needs to be somewhere, I just don't like how it's wired up to the core. So telling you not to compromise the "purity of the abstraction layer" with variable sized typing isn't really where I'm coming from, because I don't think it's interestingly pure.
So perhaps my main thing is "don't make it even more complicated to rip out and reform based on #ifdefs that will confuse the builds and make multi-platform support harder"
You'll find that the scripts that run around scraping function prototypes don't read #ifdefs
So you'd have to create a new type, and then the scraped header file would have to know about that type and...
Just change it to a REBCNT and we can worry about the beautiful terabyte encapping future when we get to that. Lots of other things to get right first.
 
@HostileFork ok, when I'll need it I'll build a REB_SIZE_T ;-)
just cause size_t issues seem to be a recurring thing in many projects
I've got one weird one...
host-ext-test.c(140): warning C4013: 'Alloc_Mem' undefined
 
I want Arbitrary Precision arithmetic.
 
I'm guessing the make script is not building it atm... just checked... and yeah, its not in the build list... so I'll just ignore that one... will remove it from the project.
 
@moliad I don't think that file is built by the Rebol scripts. The solution there is to change the ALLOC_ stuff to OS_ALLOC_ stuff
ALLOC_ is the macro for Rebol's internal pooled memory, and only available inside the core.
It uses Alloc_Mem and Free_Mem functions which are not exported to host
The host defines OS_Alloc_Mem and OS_Free_Mem
And Rebol Core and the Host agree that if there's memory being exchanged where one allocates and the other has to free, they use OS_Alloc_Mem and OS_Free_Mem to do so.
The all-caps macros for OS_ALLOC* and ALLOC* wrap those to be more C++ friendly and add other features. See the text around #define ALLOC and #define OS_ALLOC for explanations
There is documentation now in host-lib.h explaining what's going on
 
@HostileFork yeah, I'm basically aware of the host system... I'll look into it another time, though I like that you've added a lot more "meat" to a lot of the obscure parts and function comments.
 
3:12 AM
More to come...
 
btw, what you have done with RenC, I had started to setup last winter, but the window of opportunity closed at some point and it never opened up until now.
I'm happy the spirit of what I was going to do is taking shape even if I didn't get to it. :-)
my first task was to take the atronix build and make a core-only project and go back to the old Rebol centric building mechansim... :-D
 
Well, it has turned out to be a long project. Fix all outstanding bugs in Rebol. There's a bounty out for that... $500 to fix all the outstanding bugs.
 
hehe.
 
Let's see. 500 divided by... er...
Hm, not making so much an hour here.
 
with rounding errors... and considering there's just 2 digits to split up a $... probably make a flat rate of 0$/h ;-)
 
3:17 AM
Increased probability of making $0 that I don't know that offer is still in effect, were it ever intended as serious in the first place. :-)
@moliad And if you ever get around to watching the Ren Garden video, I should get the bounty for the GUI console too...
 
down to 79 errors, 76 warnings :-)
the majority of files compile though... so its a good sign :-)
 
Will be interesting to see if the new MSVC can build Ren/C++
That was one of the blockers before.
You can now inherit constructors from base classes. (Not copy or move constructors, however.) And you can inherit them all or select specific ones.
Used to be in C++98 if you made a derived class you could inherit methods... but not constructors. Always had to rewrite those again, even if all you did was call the base class constructor with the same parameters.
 
I like this idom in the code: int rewrite_needed;
tough a manual warning may be prettier ;-)
@HostileFork eek... that sucks.
 
<shrug> Not sure. Gets in the way of unused variable warnings, unless you want it to be a persistent unused variable warning.
189
Q: Advantages of using forward

StevengIn perfect forwarding, std::forward is used to convert the named rvalue references t1 and t2 to unnamed rvalue references. What is the purpose of doing that? How would that affect the called function inner if we leave t1 & t2 as lvalues? template <typename T1, typename T2> void outer(T1&& t1, T2&&...

C++11 has "emplacement" for instance. If you have a type FOO which has a constructor that takes a BAR and a BAZ, then to put it into a vector you used to have to create an instance, and then tell vector to push the instance into its memory.
Now you can tell vector v.emplace_back(bar, baz) and it will actually construct the object into the memory slot of the vector, because it can forward the construction through the emplace_back method and put it right there.
 
@HostileFork #warning message seems to be pretty standard... GCC VC Intel.
 
3:31 AM
So emplace_back becomes a general forwarding interface for the constructor parameter possibilities of the type of the vector. Fancy.
 
3:43 AM
down to 4 errors... yippe!
 
That's pretty close.
 
probably down to my last...
ah... strange went back up to 36... but ... most of the issues are directly related to setting up the preprocessor directives so it chooses the proper code paths
 
posted on July 21, 2015 by qtxie

FEAT: added 'progressbar' and 'slider' widget support by qtxie

 
One thing about Lit-Bit is the current usage of apostrophe to mark numeric groupings. 1'000'000 (or 1'0'0'0'0'0, whatever you feel like). So if there are lit-numbers it runs up against that application.
Given that it's not enforced to the point of even knowing that it's grouping in threes, I don't know how important that feature is.
 
4:01 AM
no lit word does not break that... there is no space before the '
'1'000 is differentiable from 1'000
 
@HostileFork Shouldn't be a problem, as currently apostrophe at the start of a number is recognized as an invalid lit-word. So it could just become a valid number with lit-bit.
 
Looks confusing to me.
Like '1' is broken from 000
 
then don't use ' to group your numbers ;-)
 
Or don't use literal numbers, as they're already literal.
But it's interesting to imagine tick numbers in dialects, for instance. [something 5 something '10]
 
@HostileFork compilation is now finishing, with only relatively weak warnings, I can go through later. but now.... seems I'm having massive linkage issues.
 
4:04 AM
Linkers, my favorite. Well, give me one error and I'll see what I can tell you.
 
the reason I want tick get and set (and maybe other) decorators and bits for them is precisely to have much more flexibility in dialects. currently there are a few strings types, many word/token types but a single block type.
(paren is a block type, but hard to use in many situations)... if we add lit blocks and parens... it opens up a lot of dialecting.
I was even thinking that lit, get, set markers could actually be stackable, such that you can put any number of them. the property becomes a count instead of a boolean, and different dialects may do different things with them...
 
On paths, there has been a rejection of the idea that a get-flagged item in the first slot means "get path" and a set-flagged item in the last slot means "set path".
 
for lit parens, it means I could reduce and compose different parens at different stages, without having to do tedious nested block building.
aren't get-paths already a datatype?
 
Well there are some experiments that need to be looked into. I want ao: :append/only to produce a function that is effectively append refined with /only.
Yes, but if the flag is being removed out then you still have problems like what is :(foo)/bar: and all the puzzles with that.
 
this breaks down into :(foo) /bar:
nothing complex about that.
we could read in C++ object::member ;-)
even if I don't really like that syntax. it can be useful to express things which are not actually used by the top level DO dialect.
people forget that the DO dialect is not forced to implement all datatypes with semantic meaning beyond them being storage... just like it ignores most literals when they are not used in GET/SET situations.
Error 69 error LNK2019: unresolved external symbol _htonl@4 referenced in function _AES_cbc_decrypt C:\dev\projects\ren-c\hostile\r3\msvc\RenC\aes.obj
hum... when I look into it, it seems like everything in the HOST = part of the makefile isn't linking.
 
4:17 AM
Don't think that works for me either.
The r3 make target is what works.
If the other stuff is supposed to work, I don't know what it's supposed to do or if it's been kept working.
 
but it still has to build and link the host to provide the runtime ... no?
 
It really just does one big link
There may be a way to build it split into pieces, but I've not done it, and I don't know when the last time it worked is.
Ren/C++ basically just swipes up all the .o files or .obj files into a static lib
But uses CMake to do it
And it drops a couple of them, like host-main.o
 
ok, so you haven't built a stand-alone r3 interpreter with Ren/c yet, you link it within Ren/C++.
maybe @earl
can give me a clue... if I can't find it within 10 minutes.
 
hey guys I'm new to Rebol
 
@moliad No, I do, I was just saying that I haven't had to build a separate host lib. I make a lib with CMake
@portforwardpodcast Hello there. What can we help you with and/or talk about?
 
4:33 AM
getting mighty sleepy... 1.5 hours of sleep last night. aiming for 5 tonight.
 
I'm curious to learn more, I just ran across it in the chat page of SO. I am reading the Chat FAQ now. is this lang used in production anyhwere?
 
@portforwardpodcast A few places, notably these days an industrial automation company that develops on it. @moliad's company Coginov uses it.
 
@portforwardpodcast the earlier version yes, definitely, but not very widespread.
 
It's more known for being a kind of "swiss army knife you get addicted to" that people wind up wanting to see used for more than just that.
 
haha that's cool. are there any DSP toolchains, like support for complex numbers etc?
 
4:37 AM
@portforwardpodcast Not a domain it has really tackled. (I have an EE degree from Cornell incidentally, and did a bunch of random DSP stuff many many years ago.)
Darnit, the &omega; is broke. :-/
 
@Hos
@HostileFork why not just window the data when you are tweaking it in fft?
 
at coginov we use it to do semantic analysis and natural language processing using hundreds of concurrent rules. I also used it to build a front end to a new Graph/Associative hybrid database.
(back end is in C though)
 
@portforwardpodcast It's been many years, but at the time it seemed to work. Unless you read significantly faster than anyone else on the planet, then I'll go back and address questions after you have read from start to finish only. :-)
 
Rebol is quite adept at building networked things quickly using DSLs. That was its main objective when it was created.
 
I didn't come here to shamelessly self promote but since we are talking about DSP, here is the problem I'm trying to solve esromneb.github.io/siglabs-markdown
I read your paper all the way :)
 
4:45 AM
@portforwardpodcast If you absorbed it then you are doing better than I would. The problem you are trying to solve is to... apply for a job? Hire someone for a job? Not clear on the link relevance.
 
oh, the link relevance is that I am looking for DSP solutions for building a totally new rf network from layer 1
sorry if that wasn't clear
just always looking for new languages, it doesn't seem Rebol is the right one for me but it does look very fun
 
Something it does do is PARSE binary. Our bots are having trouble with the new authentication and aren't here to show off atm.
@portforwardpodcast If you need compiled performance you might look at Red. Rebol is interpreted. red-lang.org/p/about.html
 
chat bots?
 
22
Q: RebolBot - a chat bot for the chat rooms

Graham Chiu RebolBot is a chat bot with a natural English dialect interface, specifically targeting the StackOverflow chat rooms. Yet it has a modular design, can post tweets to Twitter, and could be modified with only a little effort to work with other chat systems. An instance of the bot hangs out...

 
What does DSL mean in this context?
 
4:50 AM
domain specific language.
 
A domain-specific language (DSL) is a computer language specialized to a particular application domain. This is in contrast to a general-purpose language (GPL), which is broadly applicable across domains, and lacks specialized features for a particular domain. There are a wide variety of DSLs, ranging from widely used languages for common domains, such as HTML for web pages, down to languages used by only a single piece of software. DSLs can be further subdivided by the kind of language, and include domain-specific markup languages, domain-specific modeling languages (more generally, specification...
 
would a statemachine be a good place to apply a DSL?
 
ha well it does appear on that wiki page
 
yes many have used it for that purpose.
 
4:51 AM
you guys are so helpful haha
 
rebol makes it easy to play with language in both human and machine forms.
 
haha red is supposed to be full stack, I don't see any verilog support! haha jk
 
It's hydrogen powered.
 
:-)
 
@GrahamChiu No luck on bot logins yet... ? :-/
Jul 12 at 13:29, by rgchris
See also: Twitter, Etsy, S3...
@portforwardpodcast ^-- those are some nice examples of API interfaces for Twitter, Etsy, S3 that use Rebol, as a sort of gist of what it looks like
Toggle the rendering with D (dark), G (gray), L (light)
 
4:58 AM
ok wow that's pretty slick
 
There are a number of clever choices in the language that make it ergonomically a win over its ancestors like Lisp and Forth
 
Yeah I was gonna say it's similar to Forth. I worked at an embedded systems company specializing in forth for 4 years. not ironic
 
the reason I use it is that its the most productive language I've ever used. everytime I'm forced to use other tools with require an IDE and "frameworks" I just want to cry :-)
 
how do you like ruby on rails?
 
never had to use it, building our own web platforms is like a hobby for just about every other Reboler out there... its sooo easy to do.
 
5:01 AM
I like it because Michael Hartl made money off railstutorial.org ... I guess that's most of what I have to say about it. :-)
 
got to go... will try and figure out the RenC linking issues tomorrow.. time to get some shut eye... ciao.
 
@moliad Later... good to see you doing a MSVC build. Regardless of what I think of it, people do use it...
 
it's my favorite web framework ever
but have fun! cya
 
(got a hockey game at 6h30AM ... and its already 1AM here in Montreal)
 
Linguistically to me, Python and Ruby and JavaScript are all just different spins on the same old uninteresting ideas. JavaScript sucks the most, I don't know that I have a terribly super strong opinion on the other two.
But what I do feel is that the world would have been better just standardizing on one than having all three. Nothing sufficiently different between what they enable.
 
5:05 AM
Haha I searched for "rebol lambdas" and it said "did you mean RUBY?"
 
JavaScript isn't that bad.
 
I like js a lot
meteor.js makes javascript fun again
it'
it's the closest thing to RoR in js
 
can you run rebol in the browser yet?
 
@HostileFork It has that shitty C/++ syntax, but there are some good parts. At least it's not PHP :-)
 
5:07 AM
@portforwardpodcast There is an emscripten build, yes.
@rebolek If not being PHP is the sole criterion for a language not being bad...
 
ha
guys who defend PHP are the worst
 
I won't say that PHP has bad design. I think it has no design at all.
 
5:11 AM
@portforwardpodcast Learning a little Rebol will pay for itself quickly, as long as you don't get interested in working on the project itself.
 
oh I will be able to avoid that
I really am enamored with that Twitter library. I had to find ObjectiveC libraries for twitter/facebook in 2011 and omg it was the worst shit ever
3
and then I needed features they didnt' have. and so on. same story always
 
@portforwardpodcast Rebol is kind of techno-amish in a way. "just say no" sort of stuff
It can be sort of grumpy-old-man at times, but I think people should listen to the grumpy old people sometimes instead of just spiraling off into broken out-of-control garbage.
 
lol just use git
 
That's from 2010, and git has the same problems.
 
aaaand that's the first comment on that page
yeah I know. but at least the problems with git are with installation and not usage. and I haven't had a problem with git in 2 years so I'm happy
 
5:19 AM
@portforwardpodcast So something to observe in that twitter library, as a little example of cleverness, is that Rebol has multiple string types. It has ordinary strings which you can write in "quotes" or you can {Put them in "curly braces" and it's cool because {matched pairs} are even allowed as well as apostrophes and quotes}
An asymmetric string delimiter option is nice for making things clean. But another string type is for tags.
So if you say <Some stuff like this> or <div> or </div> or <span id="whatever">, then you are declaring a different "flavor" of string.
A routine passed a string can ask the value (homoiconically, like in lisp where you have the structure available to reflect on) "are you a string" and if so "what kind are you"
Chris does an interesting trick with his APIs. In the header block, he puts the keys you configure with, but sets them to tags at first with the name text.
Then you substitute in the non-tag values you want for those things, and the script looks in the header to see if that's where you put the configuration. If the slots don't have tags, it knows you configured it.
Nice trick.
 
crazy. I will need some time to understand what you just said
 
I'll be a bot stand-in.
>> str: {"It's cool," said {HostileFork}, "to have a string constant notation like this."}

>> type? str
== string!

>> print str
"It's cool," said {HostileFork}, "to have a string constant notation like this."

>> print reverse str
".siht ekil noitaton tnatsnoc gnirts a evah ot" ,}kroFelitsoH{ dias ",looc s'tI"
>> str: "You have traditional double quotes too, but they're not as good."

>> print str
You have traditional double quotes too, but they're not as good.
 
do you listen to Stack Overflow podcast?
 
I check in on the blog entries now and again, but no.
 
oh man it's so good
Spolsky is hilarious
 
5:29 AM
Anyway, so that's a normal type of string, but there are others.
 
This one is the best for an introduction. when they got hit by the hurican blog.stackexchange.com/2012/11/…
 
>> thing: <div>
== <div>

>> type? thing
== tag!

>> reverse thing
== <vid>

>> print thing
<vid>
 
i was so riveted listening to that
 
@portforwardpodcast The high-stakes game of server maintenance... I'm sure someone will make a video game out of it if they haven't already. The Website is Down
 
 
2 hours later…
7:33 AM
@earl @ShixinZeng and anyone else interested new GC strategy on a branch. Now... Zzzzz.
 
7:47 AM
posted on July 21, 2015 by hostilefork

Addresses problem of C execution stack overflow when given deeply nested blocks, such as this: a: copy [] loop 200'000 [a: append/only copy [] a] recycle Works standalone whereas previously in r3 it would crash. Yet test build crashes on this (and other things before it) and alerts address sanitizer. So there are more things to be fixed. To clear the air a bit, I got rid

posted on July 21, 2015 by hostilefork

Addresses problem of C execution stack overflow when given deeply nested blocks, such as this: a: copy [] loop 200'000 [a: append/only copy [] a] recycle Works standalone whereas previously in r3 it would crash. Yet test build crashes on this (and other things before it) and alerts address sanitizer. So there are more things to be fixed. To clear the air a bit, I got rid

 
 
3 hours later…
11:09 AM
hi, I saved a map! to a file with the format hash - object!
Used repend to insert two pairs to the map!
when it's loaded back, it's datatype is map!
but how can I transverse the elements and have the objects again?
 
11:29 AM
foreach [h o] m2 [ print join "h: " h]
h: 2749161
h: object!
h: 4111405
I'll try forskip and apply do to the second term
 
 
3 hours later…
2:08 PM
any help on this?
 
@earl Would I be able to set that attribute at function call time, or would it have to be specified at function definition time?
That is, would I have to have two functions if I wanted both behaviours to be available ...
 
3:06 PM
@Luis Don't forget that you can post a Q&A on the site. When you do, people who are subscribed to the Rebol questions feed can get notified via email (not everyone reads this chat, and those who do still might not scroll back and see a question). There's also an RSS feed for people who want to keep up that way.
 
@HostileFork: I'll post it there then, I was hoping for a quicker answer, though
 
One of the primary and nearly-forgotten purposes of this room is to help people use the Q&A effectively... so we should be pushing more for making sure people still look to that as the main way to get support for their questions. The more questions there are on the site the better...makes it searchable and if an answer is wrong it can be amended later.
@Luis The questions (and answers) are posted as a feed in this room, so it shouldn't be that much slower...
@Luis But do make sure your question is complete and contains all the necessary information. If you use a file, say what's in that file. Make sure it's a minimal, complete, verifiable example
And if a question is actually two questions, make it into two distinct questions.
 
yes, I'll try my best ;-)
 
posted on July 21, 2015 by Fork

For those who are not following what's happening lately with Ren/C, an overview of the status of the forks: http://stackoverflow.com/questions/31510930/rebol3-what-is-the-difference-between-the-different-branches

posted on July 21, 2015 by zsx

0.3.02 is for windows-x64 in systems.r: https://github.com/metaeducation/ren-c/blob/master/src/tools/systems.r#L52, while in platform.r it's for dec-alpha: https://github.com/metaeducation/ren-c/blob/master/src/boot/platforms.r#L19 Mismatches for other platforms also exist.

 
3:45 PM
0
Q: load a map of hash - object key pair

LuisPlease consider this example where I save a map! to a file and want to load it back and access its keys and values. Its keys are hashes and its values are blocks. rebol [] bl1: make object! [ name: "first" age: 42 ] bl2: make bl1 [] ; probe join "bl1: " bl1 ; probe join "bl...

 
4:24 PM
@HostileFork I think I've got the linking issues cornered... I've got to to replicate the different sets of preprocessor definitions for the host and for the core.. they have different ones. (obviously)
should not be very long now. :-)
 
@moliad Good to know. And if you style like me, be sure to include a comment about the "whys" for any new #ifdefs and such.
 
@HostileFork yes.. for complex stuff I often have more comments than lines of code. especially when there are inter-dependencies between sections of code.
I'm now grouping the various files in my project so that I can apply the various compile flags (preprocessor defs) to each group (host, devices, core, codecs)
 
FYI, I am working on a cmake generator. It should generate files for CMake for different platforms and compilers
2
 
host and devices use the same setup , core and codecs share another.
 
I've tested with GCC on Linux x86/64 and MSVC on Windows x86/64
 
4:39 PM
@ShixinZeng That... is very much needed! Great, I'm sure @earl will have thoughts to throw in on that too.
 
@ShixinZeng on msvc, can you explain your toolchain ?
 
visual studio 2013
but I believe CMake should work with other versions of MSVC as well
 
I mean how do you integrate cmake in your msvc work
 
make-cmake.r generates CMakeLists.txt
CMake generates MSVC solution and project files based on CMakeLists.txt
 
ok and form there on, you just open the solution and continue from there.
 
4:44 PM
Yes
 
IIRC @HostileFork seems to have mentioned that you where able to debug GCC compiled stuff in msvc. did I understand correctly?
 
@moliad I think I've done that once, and it's not fun
 
ok, so on windows, you basically always use msvc? :-)
 
As far as I remember, you need to convert the debugging info from dwarf to whatever format windows debugger recognizes
Yes, when I need to use the debugger, I just compile it with MSVC
otherwise, I cross-compile it from Linux
 
make-cmake.r is REALLY welcome
 
4:49 PM
@host
 
0
A: load a map of hash - object key pair

rebolekSAVE uses an imperfect but more readable format. Use SAVE/ALL to preserve all values exactly as they should be (SAVE/ALL uses so call serialization format in form of #[datatype! value]). Also, just use LOAD and not DO LOAD to get the data back. DO is not required in this case - LOAD converts the...

 
@ShixinZeng now where were you yesterday!!
I took my entire evening building the project I can almost generate ren/C from ... now a robot will redo it in a second '8-/
 
@moliad I was working on this make-cmake.r yesterday!!!
:)
 
@HostileFork I tried to build rengarden, but alas.

The r3 build (which worked fine standalone yesterday) gave me 5 compile errors. Not hindered by any intelligence close to dinner time .... I copied the build of r3 and then tried to build rencpp:

```
ren-cpp/src/rebol-binding/rebol-runtime.cpp:234:5: error: use of undeclared identifier 'Set_Word'
Set_Word(
^
```
 
hehe if only I had known.... clearly there is temporal synergy. I'll try this out right now.
first, got to get cmake.
 
4:54 PM
Yup, yesterday's code worked fine. Now let me pull master for ren-c
 
@Maarten Glad to hear you're building it! Didn't know anyone was. I'll mention that Ren Garden has a bug in it right now; although Ren/C++ was working. Because it's in "development stage" I have Ren/C++ tracking master vs. being tied to a specific commit. This means that as Ren/C changes it will break Ren/C++ if I do not go and patch it simultaneously.
 
Ok
 
I can switch it, and we have been discussing when the right time to switch to a Git-Flow model is.
 
Well, it's close to traveling/holiday time, so I try to get some fun uploaded on my laptop
So no worries, ren-c core is fun enough
 
Under Git-Flow, you do your integrations under develop instead of master, such that no one is supposed to be able to clone master at a bad state.
 
4:56 PM
But:
../src/os/posix/host-config.c:194:14: error: use of undeclared identifier 'environ'
for (n = 0; environ[n]; n++) len += 1 + strlen(environ[n]);
^
../src/os/posix/host-config.c:194:49: error: use of undeclared identifier 'environ'
for (n = 0; environ[n]; n++) len += 1 + strlen(environ[n]);
^
../src/os/posix/host-config.c:200:14: error: use of undeclared identifier 'environ'
for (n = 0; environ[n]; n++) {
^
../src/os/posix/host-config.c:201:16: error: use of undeclared identifier 'environ'
len = strlen(environ[n]);
 
@Maarten What platform is that?
 
I work with git-flow :-)
OSX
64 bit
I.e. make -f makefile.boot OS_ID=0.2.40
 
@Maarten We were getting a duplicate declaration on that environ, and environ is supposed to be defined in stdlib.h
Which is included in that file.
 
@ShixinZeng I guess I just need to but cmake.exe in the same folder as the make-cmake.r
 

« first day (1724 days earlier)      last day (2056 days later) »