r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Kaj
21-Jun-2011
[2291]
It's still a favourite bragging exercise in very popular Linux distributions
Dockimbel
21-Jun-2011
[2292]
I should blame myself first to not have paid more attention in the 
beginning to avoid making Red/System's compiler dependent on REBOL/View 
features.
Kaj
21-Jun-2011
[2293]
Yeah, isn't struct avoidable?
Dockimbel
21-Jun-2011
[2294]
Sure it is, it just requires to code custom serialization routines 
instead.
Kaj
21-Jun-2011
[2295x2]
I'd be very pleased with that; nudge, nudge :-)
Would make Red run on Syllable Server
Dockimbel
21-Jun-2011
[2297]
Also, people installing View on Linux to try Red might encounter 
issues related to View installation.
Kaj
21-Jun-2011
[2298x2]
I'm using it on the graphical version now, that we can't release 
because the integration with BogoLinux X packages is too brittle
Yep
Dockimbel
21-Jun-2011
[2300]
I might have already lost a few potential users just because of that.
Kaj
21-Jun-2011
[2301]
They told you?
Dockimbel
21-Jun-2011
[2302]
One told me that IIRC, he didn't want to accept the licensing terms 
that the View installer was asking him to accept.
Kaj
21-Jun-2011
[2303x2]
I can't sell web sites because my site builder is running in REBOL, 
which people can't get installed
Yeah, we've had one paranoid tell us he wouldn't install AltME because 
it's a binary :-/
Dockimbel
21-Jun-2011
[2305x2]
:-)
He must be running FreeBSD ;-)
Kaj
21-Jun-2011
[2307]
No, he once built his own security optimised Debian distro
Dockimbel
21-Jun-2011
[2308]
Did I meet him at ReBorCon2011?
Kaj
21-Jun-2011
[2309x2]
You sat across the table from him :-)
In the restaurant
Dockimbel
21-Jun-2011
[2311]
I guessed so. ;-)
Kaj
21-Jun-2011
[2312]
We also found him in the 0MQ contributors list :-)
Dockimbel
21-Jun-2011
[2313x2]
hehe :-)
PCBSD: the installer is not able to activate the network card, tried 
both DHCP and manual configuration...
Kaj
21-Jun-2011
[2315x2]
That's disappointing; I would have expected it to be better
But that happens with operating systems once you try them...
Dockimbel
21-Jun-2011
[2317]
The DHCP option worked fine with FreeBSD.
Kaj
21-Jun-2011
[2318x2]
Sounds very Linux: you need DHCP and X, and you have one distro that 
does DHCP, and another that does X :-/
It's the universe's way to tell you you won't win in this life...
Dockimbel
21-Jun-2011
[2320]
I spent 1h trying to make them work, I should have spent that time 
on getting rid of /View instead. ;-)
Kaj
21-Jun-2011
[2321]
I once decided to spend the time I needed to waste configuring Windows 
and Linux to make my own operating systems :-)
Dockimbel
21-Jun-2011
[2322]
I wonder if I could not provide my own custom REBOL interpreter instead 
using the SDK.
Kaj
21-Jun-2011
[2323]
:-)
Dockimbel
21-Jun-2011
[2324]
Rebpro binary provides the features I need without the View issues.
Kaj
21-Jun-2011
[2325x3]
It's very debatable whether you would be exposing the REBOL API :-)
This is supposed to work, isn't it?
as-message: "zmq_msg_init_data" [  ; Convert to new message.
	message		[message!]
	data		[byte-ptr!]
	size		[size!]
	free		[function! [data [byte-ptr!] hint [handle!]]]
;	free		[handle!]
	hint		[handle!]
	return: 	[integer!]
]
Dockimbel
21-Jun-2011
[2328]
Yes, it should work.
Kaj
21-Jun-2011
[2329]
*** Compiler Internal Error: Script Error : compare-func-specs expected 
cb argument of type: get-word 
*** Where: check-expected-type 
*** Near:  [unless any [
all [
block? expr 
object? expr/1 
expr/1/action = 'null 
type: expected 
any-pointer? expected/1
] 
all [
type 
any [
Dockimbel
21-Jun-2011
[2330]
How do you call AS-MESSAGE?
Kaj
21-Jun-2011
[2331x2]
It's when passing it NULL:
either as-logic as-message message data size none none [
Dockimbel
21-Jun-2011
[2333x2]
ah! :-)
Null is not a replacement for function!.
Kaj
21-Jun-2011
[2335x2]
It does need to be in this function
That is to say; if a C function has a fixed parameter list, can it 
be called with fewer arguments?
Dockimbel
21-Jun-2011
[2337]
I don't think so. The called function will try to get its missing 
arguments from stack anyway.
Kaj
21-Jun-2011
[2338]
Then I need to pass NULL
Dockimbel
21-Jun-2011
[2339x2]
You should make 2 bindings, one with function!, other with handle! 
(for passing Null). And a wrapper function for the latter one, to 
make it cleaner for the user.
I will look into the compiler internal error tomorrow, it needs a 
fix anyway.