AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 5907 |
r3wp | 58701 |
total: | 64608 |
results window for this page: [start: 62201 end: 62300]
world-name: r3wp
Group: Red ... Red language group [web-public] | ||
Dockimbel: 28-Feb-2011 | Indexing with a variable should also be possible: s: "hello" c: 1 s/c or s/:c (haven't decided yet which one is the more appropriate) | |
nve: 5-Mar-2011 | Started a new blog : http://red-chronicle.blogspot.com/ | |
nve: 5-Mar-2011 | And a Twitter : http://twitter.com/red_chronicle | |
Dockimbel: 9-Mar-2011 | Yes, I did a bad move with my git client and created two branches instead of one. Looking in github for a "drop branch" button. | |
BrianH: 9-Mar-2011 | For that matter, will Red/System be getting a module system, or some other kind of packaging facility? | |
Dockimbel: 9-Mar-2011 | I'll extend it to allow compiling several sources in a single executable, but I won't go past that. Red/System will live as a Red dialect, so will benefit from the whole Red environment. The only time it needs to work alone will be to produce the Red's runtime layer. But, as said in my blog, Red/System could be extended to a full-featured language if someone want to invest in it. | |
Dockimbel: 9-Mar-2011 | Red/System is a cross-compiler. ;-) | |
amacleod: 10-Mar-2011 | the helloworld.reds script exe opens a console, writes stuff and then closes. Is there a way to keep that wndow open so I can see the output? | |
Dockimbel: 10-Mar-2011 | amacleod: It's mentioned in the README file: 4) The resulting binary is in red-system/builds/hello.exe, open a DOS console and run it. | |
Dockimbel: 10-Mar-2011 | I've looked at TCC sources for inspiration (don't know about OTCC). Making a compiler is at the heart of the project, Red (as Red/System) are compiled languages. | |
Maxim: 10-Mar-2011 | could LLVM also be a target for the emitter, eventually? | |
Dockimbel: 10-Mar-2011 | Short answer: sure, but it's not in the roadmap, I don't have a need for it. | |
Steeve: 10-Mar-2011 | But you know, I woud prefer a DSL like emiter, something using parse's rules exclusively | |
Dockimbel: 10-Mar-2011 | I needed to prototype a direct native emitter for the upcoming JIT-compiler. So compilation speed was a critical. | |
Maxim: 10-Mar-2011 | thanks, I was just wondering if the compiler was structured in a way to make it possible. as for when/how that's obviously not a priority if you're already able to spit out code for the various platforms easily. | |
Dockimbel: 10-Mar-2011 | was a critical => was critical | |
Dockimbel: 10-Mar-2011 | Yes, that's the idea. It's currently in a boostrapping phase, temporary relying on REBOL. | |
Steeve: 10-Mar-2011 | No, I mean writing each target emitters/assemblers (IA32.r) with a dialect. | |
Steeve: 10-Mar-2011 | In a way to ease porting | |
Steeve: 10-Mar-2011 | But it's true that it's a matter of taste. | |
Dockimbel: 10-Mar-2011 | Such dialect would be an IR (Intermediate Representation), I wanted to avoid that, for several reasons: simplicity, efficiency, performances. The porting effort is not so big with the current approach. Also, once I'll start working on the optimizing compiler version (next year), I would use need an IR, and it would need to be a little higher level than that (emitter/ASM-like level). | |
Dockimbel: 10-Mar-2011 | If you set the compilation logs to 3 (-vvv) and take only the entries starting with ">>" you'll get a feeling of what such IR would be. In fact, just recording these steps instead of reducing them directly to native code, would almost give you a good IR to start making optimizations (other than the very trivial ones that I've included in IA32.r). | |
Dockimbel: 10-Mar-2011 | I remember reading E docs, but not coding...maybe I just did a HelloWorld app. | |
Maxim: 10-Mar-2011 | IIRC it would compile 10000 lines of code /second on a 7MHz cpu. | |
Dockimbel: 10-Mar-2011 | Max: the current supported types in Red/System are all of same size. Makes a lot of things easier, but I will need 8 and 16-bit sizes very soon, so the simplicity of implementation will probably suffer a little from that. | |
GrahamC: 10-Mar-2011 | Or, you could write a script to post these to the google groups list too :) | |
GrahamC: 10-Mar-2011 | the web public is just a convention | |
Dockimbel: 10-Mar-2011 | I don't see how the chat-oriented content here would not look like a big mess if copied to a web forum :-). | |
GrahamC: 10-Mar-2011 | Just a suggestion ... to cc to mailing list. Not everyone on the mailing list is on altme | |
GrahamC: 10-Mar-2011 | And it would ensure a single source for discussion | |
Kaj: 10-Mar-2011 | The REBOL list? That was dead when I looked a while ago | |
Dockimbel: 10-Mar-2011 | Let's start with a simple announcement: | |
GrahamC: 10-Mar-2011 | not a tech question about red .. but what is a code bubble? | |
Kaj: 10-Mar-2011 | I wrote a Syllable build recipe for Red: | |
Kaj: 10-Mar-2011 | There's not very much you can do with Red on Syllable yet, and the integration is awkward, but it's a start | |
BrianH: 10-Mar-2011 | Code bubbles have almost nothing to do with literate programming. For one thing, you can't add inlime docs beyond the comments in the language syntax. This is more like a more graphical version of the Smalltalk browser. | |
BrianH: 10-Mar-2011 | The original Java case benefits more from the concept than REBOL would because there are many addon standards like JavaDoc that need managing, but at least have been agreed upon by their community. We don't have that kind of agreement in the REBOL community. Also, the structure of the Java language is very limited, so it's a bit easier to parse it and have its structure just be in the background even though the language wasn't designed for that like Smalltalk was for its browser. For Red, since it's so early, things like integrated documentation can be developed along with the language, so something like this would make more sense. However, if Red is going to have even a large fraction of the power of REBOL then it won't be as structured as Java, making it a little more difficult to retrofit a Code Bubbles interface onto existing code. This is why you would need an IDE to understand code written in this kind of IDE: A Code Bubbles style interface doesn't generate code with story structure the way scripts are structured, so you can't just read the code without the context of the IDE. | |
Dockimbel: 11-Mar-2011 | Kaj: I'll have a look at ELF format this weekend, to see if it is possible to add it quickly on sunday. | |
Dockimbel: 11-Mar-2011 | It it requires more than a day of work, I'll postpone it for the end of this month. | |
Dockimbel: 11-Mar-2011 | Graham: I've posted a short reply to your code bubbles question here: http://groups.google.com/group/red-lang/browse_thread/thread/8ecea42063ee4e14/6f7364ebadc7291d?hl=en#6f7364ebadc7291d | |
BrianH: 11-Mar-2011 | I replied to that as well, but the word wrap corrupted my post a little. Whoops. | |
BrianH: 11-Mar-2011 | I didn't realize that the word wrapping was something it did; I thought it was something *you* did in that message. So I put in my own line endings, which ended up in the wrong place because they word wrap at fixed indexes as if they weren't rendering with a proportional font. If they are word wrapping that way, they should use an editor with a fixed-length font and a margin line. | |
BrianH: 11-Mar-2011 | What they are doing is using the Usenet message format in Google Groups, and that means ~78 character lines iirc. That format was designed for composing messages in terminals (like in R3 chat) or in special editors that use fonts like Courier when composing messages. It's surprising that they didn't relax the format a little for groups that aren't mirrored on the real Usenet, but when you "Show original" (in the "More options" section) the message is formatted for Usenet and email. | |
Andreas: 11-Mar-2011 | Brian, Google Groups still is a mailing-list tfrontend, so those messages actually go out via email. | |
Steeve: 11-Mar-2011 | Question: I created my fork. And now I created a branch on my computer, but where am I supposed to work exactly ? I mean, I only see the source files in a sub dir called /red-system | |
Dockimbel: 11-Mar-2011 | Maybe you should have look at a Git documentation first? | |
Steeve: 11-Mar-2011 | Doc, do you see something ? I pulled a request. | |
Dockimbel: 11-Mar-2011 | Steeve: yes, got it, looks good to me. I'll pull it in a few minutes. Andreas is right, you don't need to comment the old code, just delete it (but keep the TBD comments). | |
Dockimbel: 11-Mar-2011 | Your pull request disappeared, I guess you'll publish a new one. | |
Steeve: 11-Mar-2011 | I repulled a request. | |
Dockimbel: 11-Mar-2011 | It was missing a to-integer conversion: power-of-2?: func [n [integer!]][if zero? n - 1 and n [to integer! log-2 n]] | |
Steeve: 11-Mar-2011 | well it should be a little little faster aswell ;-) | |
Dockimbel: 11-Mar-2011 | For now, it's a prototype code, it doesn't need to be much micro-optimized as it will be fully rewritten in a few months using the Red language. | |
Steeve: 11-Mar-2011 | I see that you use a lot, nested EITHER structures. Personnaly I prefer flat CASE structures, more readable. And i also think CASE could be faster. | |
Dockimbel: 11-Mar-2011 | It seems a ticket is opened for each pull request... | |
Steeve: 11-Mar-2011 | I just click ramdomly like a foul | |
Dockimbel: 11-Mar-2011 | Are you using a Git client or just github's web UI? | |
Steeve: 11-Mar-2011 | I made a clone of my fork on my PC | |
Andreas: 11-Mar-2011 | steeve, locally do a "git pull --rebase" from doc's repo | |
Dockimbel: 13-Mar-2011 | Thanks to Andreas' help, we now have a first experimental support for Linux/ELF for Red/System. It's still very limited (basically just being able to call a system function with an argument), but it's a good start. It should be extended in the next days to support compilation of the hello.reds demo script. | |
Dockimbel: 13-Mar-2011 | Nope, seems that a ELF support large enough to run the demo script could be doable tomorrow or in the next days. | |
Andreas: 13-Mar-2011 | libc support will come as soon as we get support for a loader done | |
Dockimbel: 13-Mar-2011 | Kaj: I had a quick look at *BSD syscalls, there are pretty much the same as Linux (at least for the most used ones). The calling convention is different thought, but can be supported by one or two more lines of code in Red/System emitter. | |
Dockimbel: 13-Mar-2011 | When I see how Carl fights with various libc versions...I wonder if syscalls are not an easier path even if it can have some minor porting costs here and there? Anyway, a libc mapping will be possible soon, so all options are open. | |
Kaj: 13-Mar-2011 | The issue R2 currently has with old Linux systems is with floating point. That's in the math library, part of GLibC, not the kernel, so there's no way around it unless you use a completely different implementation | |
BrianH: 14-Mar-2011 | That's more of a Red problem though. Red/System doesn't have floating point, just integers. | |
Dockimbel: 14-Mar-2011 | If the performances are close to classic floating point math operations, that would be a great alternative. | |
Kaj: 14-Mar-2011 | That is not to be expected, because this seems to be a software implementation | |
Kaj: 14-Mar-2011 | Still, the R2 problem with the math library is probably a fluke that can be prevented | |
Kaj: 14-Mar-2011 | On the one side you have a chaotic Linux ecosystem where most developers refuse to care about binary compatibility, on the other hand you have an isolated REBOL cave where Carl refuses to deal with outside complexity. This is a recipe for disaster. There must be some middle ground - as we have proven in Syllable | |
Dockimbel: 14-Mar-2011 | Download: that's strange, there was a download button under the title of the article, I've got it a few of hours ago, checking the licensing terms in the sources archive... | |
Kaj: 14-Mar-2011 | This IEEE 754R spec is a revision based on IEEE 754, but it seems to me that the decimal implementation in this library is in software, awaiting new FPUs (IBM already has a few (although already is not really a good term for 2011)) | |
Dockimbel: 14-Mar-2011 | I agree that the library size is too big anyway for a direct inclusion in Red's core. | |
Ladislav: 14-Mar-2011 | Hi, I added a Red to the Alternatives section in REBOL Wikipedia page. | |
Ladislav: 14-Mar-2011 | Sure I could, but they were removed by some "purists" telling, that the Wikipedia was not a link repository, so I am afraid it might be contraproductive. | |
Dockimbel: 14-Mar-2011 | Brian: yes, for financial usage, so might differ a bit from REBOL's money! type. | |
Kaj: 14-Mar-2011 | Once Red is a bit more mature, it will be quite a bit easier to write bindings for Red than for R3 | |
GrahamC: 14-Mar-2011 | This has got to be the shortest time for a working rebol clone ! | |
Kaj: 14-Mar-2011 | Doc claims to have been secretly working on it for a decade ;-) | |
Dockimbel: 15-Mar-2011 | while [yes = yes] => this cries for a better logic values support ;-) I was working on a TRUE/FALSE support in the train when coming to ReBorCon 2011, but never finished it. I need to get back on it. | |
Dockimbel: 15-Mar-2011 | I can compile it with the last Red/System version (adding calling converbut I get a "zmq_err0 entry point not found". I guess, there's a regression in the compiler or an incompatible change. I'll check that after publising the new revision with extended Linux support. | |
Kaj: 15-Mar-2011 | Interesting that it works under WINE but not Windows. :-) I did have to install some Visual C++ runtime from 2008, but the lack of that produced a fairly clear error pointing in that direction | |
Kaj: 15-Mar-2011 | Did you install libzmq.dll? It's a binding with a dynamic library | |
Dockimbel: 15-Mar-2011 | Pushing the new revision in a couple of minutes... | |
Kaj: 15-Mar-2011 | So the 512 bytes binary pages (with seemingly 2048 bytes minimum) are a Windows thing? | |
Dockimbel: 15-Mar-2011 | ELF seems to be a bit smarter about page loading, it doesn't require explicit padding to page boundaries in the file itself, so can generate smaller exe. (It's possible with PE too with some hacking). | |
Dockimbel: 15-Mar-2011 | Andreas is supposed to give it a try this week. | |
Andreas: 15-Mar-2011 | very nice, doc. the ELF hello works like a charm here :) | |
Kaj: 15-Mar-2011 | This function differs in that it has no parameters, only a return value. Might have something to do with it | |
Kaj: 15-Mar-2011 | Actually, this name truncation is in the symbol table, so it's a bug in the Red code generator that doesn't disturb WINE if the function isn't called | |
Dockimbel: 15-Mar-2011 | The preprocessor is a bit too aggressive. | |
Andreas: 15-Mar-2011 | so sticking to the C convention of ALL_CAPS_DEFINES is probably a good idea (at least for now) :) | |
Dockimbel: 15-Mar-2011 | That would be safer, until we get a smarter one. | |
Dockimbel: 15-Mar-2011 | I thought about adding a full macros system, I think it will be useful until we can compose Red/System code from Red itself. | |
Dockimbel: 15-Mar-2011 | Once that definition fixed in %ZeroMQ-binding.reds, I can compile working versions of client & server...testing...seems to work ok, the server is receiving a list of Hello messages from the client. :-) | |
Kaj: 15-Mar-2011 | Is the preprocessor necessary at all? It's usually much nicer to implement this functionality at a more integrated level in a language | |
Dockimbel: 15-Mar-2011 | Currently, a default format is applied depending on the REBOL binary used. | |
BrianH: 15-Mar-2011 | You can compose Red/System from REBOL in lieu of a preprocessor, until the compiler is ported to Red. | |
Dockimbel: 15-Mar-2011 | I wanted to get back to the roots (80's for me) of computing, a time where an entire OS + programming langage could fit in a 16KB ROM ;-). | |
Dockimbel: 15-Mar-2011 | Eh, you can do a lot in 510 bytes! |
62201 / 64608 | 1 | 2 | 3 | 4 | 5 | ... | 621 | 622 | [623] | 624 | 625 | ... | 643 | 644 | 645 | 646 | 647 |