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: 63301 end: 63400]
world-name: r3wp
Group: Red ... Red language group [web-public] | ||
Kaj: 9-Oct-2011 | Added a widgets overview to the examples | |
Kaj: 11-Oct-2011 | I'm about to define names for them. :-) They were the most practical way to construct a dialect that results in proper settings for filling or fixating a box cell | |
Dockimbel: 11-Oct-2011 | Ok, I see now what they are used for. :-) Are the extra brackets around some button titles a special convention you're using? | |
Kaj: 11-Oct-2011 | Normally a button needs more than one parameter, so it would always have brackets. But here they're only used as examples, so they only have a display text and the brackets can be left out | |
Kaj: 11-Oct-2011 | I left them in for a while to make the separation with the optionally following layout parameters clearer, but in the latest version I reconsidered | |
Andreas: 11-Oct-2011 | RFC3629 has a (non-normative) ABNF, if I remember correctly. | |
BrianH: 11-Oct-2011 | It would still be a good idea to review the Unicode standard to determine which of the characters should be treated as spaces, but that would still be a problem for R3 because all of the delimiters it currently supports are one byte in UTF-8 for efficiency. If other delimiters are supported, R3's parser will be much slower. | |
Andreas: 12-Oct-2011 | After having a quick glance at it, at least for utf8 it's quite basic and does not take any of the above overlong combinations into account. | |
BrianH: 12-Oct-2011 | The policy on overlong combinations was set by R3, where there isn't as much need to flag them. Overlong combinations are a problem in UTF-8 for code that works on the binary encoding directly, instead of translating to Unicode first. The only function in R3 that operates that way is TRANSCODE, so as long as it doesn't choke on overlong combinations there is no problem with them being allowed. It might be good to add a /strict option to INVALID-UTF? though to make it check for them. | |
amacleod: 18-Oct-2011 | Kaj, I love what you are doing. Just curious if you looked at QT, it seems to be avail on more platforms - phone wise- which is a major plus... Is it more difficult to impliment? | |
Kaj: 18-Oct-2011 | I never liked either GTK or Qt. The reason I'm binding one anyway is that we want native platform user interfaces for Red. Linux and BSD don't have a native interface, but if you have to appoint one, you have to appoint two: GTK and Qt | |
Kaj: 18-Oct-2011 | Basically, to bind a C++ library, you have to write two bindings: one from C++ to C, and then one from C to your target language. This is because only C++ knows what C++ objects mean, and C++ claims that its object classes are a program's interface | |
Kaj: 18-Oct-2011 | So you can write a binding from Red/System to a C library purely in Red/System, while a C++ binding would also require writing an extra bridge in C++. Even after this initial hurdle, apart from the maintenance, a remaining problem would be that the C++ bridge needs a traditional development environment, so the wonderful abitlity of Red to crosscompile to anything would be negated for a large part. Basically the same problem that REBOL 3 extensions have | |
Kaj: 18-Oct-2011 | For generic libraries, binding tools exist, such as SWIG and SIP. Unfortunately, they don't solve the problem but only assist a little, and the result is very bloated | |
Kaj: 18-Oct-2011 | Since a few years, Qt and KDE use a new tool: Smoke. It's more automated, so it looks like it can generate a C interface without writing C++ yourself. However, the cross-compilation problem still exists. Because the tool is so generic, the bindings it generates are also quite bloated and probably otherwise inefficient. In any case, it's just the first step for a Red binding, because I put abstraction layers over my bindings that are much more REBOL like | |
Kaj: 18-Oct-2011 | I'm not planning to fragment the effort by doing a Qt binding as well, but I did evaluate it, and the decision could change if I would be funded for it | |
Kaj: 19-Oct-2011 | :-) Fortunately, you can build an entire economy on it, because every solution creates a new problem... | |
Kaj: 21-Oct-2011 | Added a logic! element to the dialect for GTK windows to support their ability to be non-resizable | |
GrahamC: 21-Oct-2011 | Any chance of doing a youtube video on a demo? | |
Kaj: 21-Oct-2011 | That would be a nice opportunity for someone to contribute :-) | |
Kaj: 21-Oct-2011 | It discusses 0MQ and shows SDL and GTK, but it's a primitive Hello World example when the GTK binding was only a week old, and callbacks in Red weren't fixed yet | |
Dockimbel: 21-Oct-2011 | BTW, do you plan to make a small documentation on the GTK+ binding API and/or a dedicated web page? | |
Kaj: 21-Oct-2011 | Part 8 has a discussion of the PeterPaint SDL example on Syllable Desktop, but the video is very bad during the demo: | |
Dockimbel: 22-Oct-2011 | If someone following Red progress would have time to write a small doc on the GTK+ binding API, I think that would really help. | |
Kaj: 22-Oct-2011 | That's a pity, because Jaromil requested slider and file selector widgets from me. When he has those, he can start using Red for a GUI for his Tomb security tool | |
Kaj: 22-Oct-2011 | Implemented INFO style, as a non-editable GTK line entry widget | |
Dockimbel: 22-Oct-2011 | I understand the frustration...If it could be added in 2-3 days, I would add it now, but a complete support would require much more time. I will try next week to make a more accurate evaluation of all the additions and changes required in Red/System compiler for supporting float numbers. | |
GrahamC: 22-Oct-2011 | And that can't be done by linking to a math library? | |
GrahamC: 23-Oct-2011 | Ah... I thought he was making a statement :) | |
amacleod: 23-Oct-2011 | Anyone have experience using Vincent Ecuyer's "rewbzip.r" from the script library? I'm having trouble unzipping a very large db file (150+ megs). It works for smaller zips...anyone know if there is a limit on file size? | |
Kaj: 25-Oct-2011 | Implemented all the needed GTK constructs and a convenience function for actually extracting the text content from an AREA widget | |
Kaj: 29-Oct-2011 | Implemented a dialect shortcut in most layout styles by adding a bare string element, to make the label directive optional | |
Kaj: 30-Oct-2011 | The end of Daylight Savings Time gave me an hour extra today, so I wrote a web browser: | |
Dockimbel: 30-Oct-2011 | So now we can run REBOL code in Topaz executed inside a Red/System driven web browser. ;-) | |
james_nak: 30-Oct-2011 | Kaj, this may be a dumb question but what OS are you using? | |
Ashley: 31-Oct-2011 | Wow, this is the sort of stuff to showcase Red with, "A browser in only 21Kb, a ... in only ...". Fantastic progress guys. | |
Kaj: 31-Oct-2011 | GTK's, and other IDEs', idea has always been that Glade, and now a newer interface builder, makes it easier, but combining a generated XML interface definition manually with some code language doesn't compare to Red/System | |
Dockimbel: 3-Nov-2011 | You can't reuse a function name in Red/System. `printf`and `free` are already defined in the runtime source code (%red-system/runtime/). If you provide alternative names (not used by the runtime) for those imported functions, it will work correctly. | |
Dockimbel: 6-Nov-2011 | Being able to make GUI apps on Android requires at least two more steps: - have Red/System linker be able to generate shared libraries - build a generic Java bridge to be able to instanciate java objects, invoke methods and receive events | |
Dockimbel: 6-Nov-2011 | A shorter, but less efficient path, could be to use TCP sockets (or a lib like ZeroMQ) to setup a communication channel with the generic Java bridge. | |
Pekr: 6-Nov-2011 | I finally find some time to read Red/System doc, and I have a novice question - what is basically the difference of cdecl or stdcall? Respectively - when wrapping API stuff, how do I know which one to use? I expect this area is for more skilled C developers, than occassional interface users? | |
Pekr: 6-Nov-2011 | In 13.6.2: isn't there a typo? show-args 123 -p hello it would output: count: 4 1: test-logic2 2: 123 3: -p 4: hello I would expect 1: being a "show-args" | |
Dockimbel: 6-Nov-2011 | 13.6.2: yes, it's a typo. | |
Pekr: 6-Nov-2011 | small typos: Similary, it is also possible to modify the c-string's bytes .... "similarly" alias names should end with a exclamation mark ..... "an exclamation" The stdcall attribut is also accepted .... "attribute" But - those are really small typos, you can probably spend your valuable time elsewhere :-) | |
Dockimbel: 6-Nov-2011 | Thanks for reporting them. I will fix them now, that's just a couple minute work. | |
Pekr: 6-Nov-2011 | btw: why was 'declare word used instead of 'make? Will there be 'make in a RED level, so you wanted to keep the difference? | |
Dockimbel: 6-Nov-2011 | `make` implies a dynamic creation (at run-time), while these are static value declarations (at compile-time). There was a debate about that on the Red ML, see the thread for more info. | |
Dockimbel: 6-Nov-2011 | BTW, there's no memory manager at Red/System level, so that you can't "make" a value, you can only declare it at compile-time. If you need dynamic values at run-time, you will need to use malloc/free wrappers provided by the Red/System runtime library. | |
BrianH: 6-Nov-2011 | The NDK compiles C/C++ to fat binaries native code, not Dalvik. The native code interfaces with Dlvik code through JNI standard ABI. If you make Red compile to the JNI calling conventions, to will be much easier than rigging up a TCP control interface. | |
Dockimbel: 6-Nov-2011 | Using a JNI interface is my plan, but it requires to be able to generate Red/System shared libraries. I was mentioning the TCP option, as it could be done right now. | |
BrianH: 6-Nov-2011 | If you are making a native compiler for Android, integrating with the NDK is the best way to go. Unless what you are making is a compiler that runs *on* Android devices, which would be great; then you would make the libraries for that compiler integrate with the NDK. | |
BrianH: 6-Nov-2011 | Most Android phones run 2.2 or below, so that good is a bit limited. | |
BrianH: 6-Nov-2011 | I would personally appreciate it if you supported 2.2, as that is the last version that my phone model currently has been upgraded to. It would be a good idea to look up the stats for which percentages of Android phones are running which versions. I haven't seen a 1.5 phone in over a year, but my gf's phone won't be upgraded past 1.6 (I need to get her a new phone). | |
BrianH: 6-Nov-2011 | We did a lot of research into the NDK for the R3 project. I was really interested in how an Android host program would be structured, how the Android application model would map to the R3 model. Hint: Android doesn't really have applications at all. | |
BrianH: 6-Nov-2011 | In a lot of ways, Android reminds me of the Oberon System. You don't install apps, you install system services, that for some of the types of services provide a UI, and for other types of services provide an API or task execution model. | |
BrianH: 6-Nov-2011 | There are a lot of people still waiting for their manufacturers to provide upgrades from 2.1 to 2.2, so 2.1 support is a good idea. The main thing added in 2.2 was the Dalvik JIT compiler, and that doesn't really affect native code that much. The NDK docs have a pretty good changelog that tells you what was added in each version. | |
Dockimbel: 6-Nov-2011 | I could go 2.3 with a custom ROM but I would loose HTC Sense UI. | |
Dockimbel: 6-Nov-2011 | I will stick with ARMv5 until we rewritte Red/System in Red and add a code optimizer. Such optimizer will be able to generate v6 and v7 specific code when required. | |
BrianH: 6-Nov-2011 | Never mind about what I said about ARM6. Apparently some devices were ARM6 but claiming to be ARM7. Progressive support for ARM6 and maybe even ARM7 might be a good idea to add to the ARM5 binaries. | |
Ryan: 6-Nov-2011 | Not supporting phones was part of what killed rebols momentum, imo. Being the first alternative is hugely more valuable position than being a late coming alternative. | |
Pekr: 7-Nov-2011 | I think nothing bad of you :-) For me, it is easy - you can't compare PC world, which I would assign 3+ years of lifecycle easily, with mobile world. In mobile world, I would say it is 2- lifecycle, or even shorter. If each day 300K of Android phones is activated, then I would pretty much decide to start supporting the almost latest models, which is - 2.3. Even my girlfriend HTC Wildfire S, which was published on 15.2.2011, is 2.3 version. Before Doc finishes the product, it will be old, and unsupported phone by its vendor. Of course, it depends upon the featureset you are going to support - if supporting pre 2.3 is a no brainer, why not. But - if 2.3 contains some real anhancements you want to utilise,then based upon the above usagedata, forget at least pre 2.2 ... | |
BrianH: 7-Nov-2011 | Pekr, the top Android phones are the ones people already own, not the ones they haven't bought yet. And most of the ones they already own (in my country) are bought with 2-year contracts, not qualifying for a hardware upgrade until after that, and aren't able to be upgraded very much in software because that would compete with new phone purchases. It's good to see 2.2 adoption so high though. I am stuck on 2.2, btw. | |
Kaj: 7-Nov-2011 | I do think that in practice, REBOL has usually been a Windows-only technology. Especially because its biggest draw is the easy GUI, and this is not (R3) or not well (R2) supported on anything but Windows. And because it still pretends to be cross-platform, there are even serious deployment problems on Windows | |
BrianH: 7-Nov-2011 | Though to be fair, most of the deployment problems on Windows (for R2) come from it using the registry in a Win9x style. | |
BrianH: 7-Nov-2011 | We're getting a little off-topic here though. Go Red! | |
Dockimbel: 8-Nov-2011 | It's a choice we can reconsider once Red/System will be rewritten in Red. But we'll probably end up choosing the same option, because of the overheads of deviating from the format C libs and OS API expect. Anyway, it should be an interesting debate. :-) | |
Dockimbel: 8-Nov-2011 | Sure, but the biggest issue is having to deal with a length header when passing to (and returning from) an external function. | |
Dockimbel: 9-Nov-2011 | Tamas sent me a link today about a nice little SSL/TLS library (http://polarssl.org). The bad thing is that it's GPL, but the license extends to FOSS License Exception: http://polarssl.org/license_exception As I understand it, it would be possible to use it for Red but every future Red binary publicly distributed would have to come with also the PolarSSL source code and a copy of the GPL library. I think that burden would be too high for future Red corporate users. What do you think? | |
Geomol: 9-Nov-2011 | Hm, yeah, I'm not sure. I guess, I had zlib in my mind, which PuTTY also do a reimplementation of. I'm not too much into SSH and SSL. PuTTY also have code for SFTP, if that helps in any way to make a SSL implementation. | |
Geomol: 9-Nov-2011 | Too bad, it's such a load to implement some security. :/ | |
Geomol: 9-Nov-2011 | Would it make more sense to implement such protocols in REBOL, which may be easily portable to Red? (Instead of doing a C implementation.) | |
Dockimbel: 9-Nov-2011 | I think it would be doable to implement SSL/SSH in REBOL, but it's a big task (at least for SSL). | |
Kaj: 9-Nov-2011 | Much GPL software that is relevant has that exception, so it's a limited problem | |
Kaj: 9-Nov-2011 | From a technical standpoint, Jaromil has advised me that GNU TLS is of higher quality. It is LGPL, so it's acceptable as long as you agree to provide the source code to GNU TLS only, as with many other libraries | |
Kaj: 9-Nov-2011 | It would be great to eventually implement many libraries in Red, but this is a gargantuan task, and security code is very specialised and critical | |
Kaj: 9-Nov-2011 | Apparently, PuTTY has its own BSD SSL implementation, so that's interesting. But it's not structured as a library, but entirely integrated in the other protocols, seems somewhat limited and lacking in portability. The only way to use it would be to rip out the source code and make a portable library out of it, or reimplement it in Red | |
Geomol: 9-Nov-2011 | Kaj, can you see, if it's a SSL implementation or just SSH? Or is SSL there by automatic, when making SSH implementations? | |
Andreas: 9-Nov-2011 | SFTP is basically nothing more than a set of specific commands sent over SSH. | |
Geomol: 9-Nov-2011 | There is a "telnet.c" in the PuTTY sources. | |
Dockimbel: 12-Nov-2011 | I have just bricked my Sheevaplug by doing a simple "apt-get upgrade"...:-( | |
Dockimbel: 12-Nov-2011 | So I need to find a suitable ARM emulator now to be able to finish the ARM port... | |
GrahamC: 12-Nov-2011 | Seem to be several howtos on how to unbrick a sheevaplug | |
Dockimbel: 12-Nov-2011 | I will see if I can setup QEMU to emulate an ARM and install a suitable Linux image over it. | |
Dockimbel: 13-Nov-2011 | Yes it can, but the procedure is long and complicated. It also requires a USB stick that will be recognized by the sheeva. | |
Kaj: 13-Nov-2011 | I've been working on a GoboLinux upgrade for the past days after nuking my installation, and there are all sorts of problems | |
Dockimbel: 13-Nov-2011 | Kaj: you got a message here: https://gist.github.com/1326101 | |
Dockimbel: 18-Nov-2011 | I've uploaded a zipped copy of mine: http://sidl.fr/tmp/libgio-2.0-0.zip | |
Kaj: 18-Nov-2011 | Although it may just have been followed up by a newer version | |
MikeL: 18-Nov-2011 | GTK-widgets.exe has encountered a problem and needs to close. We are sorry for the inconvenience. | |
Kaj: 18-Nov-2011 | Are you starting it from a command prompt? If you do, do you get any extra output? | |
MikeL: 18-Nov-2011 | Works if you stick a fixed block in that hbox block ... well at least at the beginning | |
MikeL: 18-Nov-2011 | Back in a few hours ... Friday mid-night approaching. | |
Kaj: 18-Nov-2011 | That's only a very coarse library version that has stayed the same for a long time. What package version did you install? | |
Dockimbel: 19-Nov-2011 | MikeL: I've pushed a fix in Red's master branch for the issue with gtk-widgets.exe, it now works fine on Win7 (should be ok on XP too). | |
MikeL: 19-Nov-2011 | Agreed. I tried to combine a GTK with a ZMQ.... I start to get collisions on #includes. Is there an #include/check option that I didnot see in Section 10 http://static.red-lang.org/red-system-specs-light.html#section-10.2 | |
BrianH: 19-Nov-2011 | Harking back to the discussion of Red strings, it might interest you to know that the SMS character set uses the 0 position for the @ character. Just one of many character sets that won't work with C strings. C string support is good for Red/System apps that have to access C string library functions, but is a bit too limiting for Red itself. | |
Dockimbel: 19-Nov-2011 | Interesting, but I guess that a specific data encoding would be more appropriate than plain REBOL or C? Something like the Golf dialect (wrote by hostilefork?). | |
BrianH: 19-Nov-2011 | I was mostly interested in code sharing over text messages, but something like AltME or a code editor on my phone would be invaluable. A code editor that can send code snippets over SMS or other sharing services sounds interesting. I only mention this in this group because Red looks like it will end up on my phone before R3, barring a miracle. | |
Oldes: 19-Nov-2011 | Do you want to make a QNX port as well? | |
Dockimbel: 19-Nov-2011 | It was a bug occurring only in rare cases, I'm glad I had the occasion to spot it. |
63301 / 64608 | 1 | 2 | 3 | 4 | 5 | ... | 632 | 633 | [634] | 635 | 636 | ... | 643 | 644 | 645 | 646 | 647 |