« first day (2404 days earlier)      last day (1376 days later) » 

1:34 AM
@rgchris I'd suggest that since SQL is a dialect already, one that is known and documented, that leaving it more or less as-is, just not in a string form, would probably be best. Automatically extract any non-literals as parameters, so select * from test.integer where (value = some-value) would become select * from test.integer where (value = ?) and pass the value bits separately.
People might have to write things like VARCHAR/50 instead of VARCHAR(50), and other bumps like that.
 
2:09 AM
The traditional desire to avoid decorating things that are intended to be substitutions vs. keywords would run into trouble here, since "value" could be either the name of the field or a variable holding the name of the field. :-/ where (:value = :some-value) could be distinguishing, or where ("value" = some-value). I dunno.
Given Plan -4, one might argue that foo(baz, bar) could be another ANY-ARRAY! type, effectively just [foo baz bar] or foo/baz/bar with a different rendering. Would allow things like VARCHAR(50), which may confuse people by being distinct from VARCHAR (50), but space significance is pervasive already elsewhere.
 
 
1 hour later…
3:39 AM
There also exist scrollable cursors. This would allow one to make the rows returned a kind of virtual block, which you could use NEXT and BACK, PICK, COPY/PART, LENGTH-OF etc. with.
They are more costly than forward-scrolling only cursors.
 
 
3 hours later…
6:10 AM
posted on May 30, 2017 by @gchiu

@gchiu wrote: Looks like I'll have to migrate this to a new instance soon. I tried to rebuild the app and it failed due to lack of disk space. Graham@docker:/var/discourse$ df Filesystem 1K-blocks Used Available Use% Mounted on udev 1886708 0 1886708 0% /dev tmpfs 378828 19640 359188 6% /run /dev/sda1

 
 
2 hours later…
8:16 AM
Build efbc483 on 31-May-2017/7:58:33Z is now available for download. Please use debug builds and report issues. No warranty of fitness is implied.
These are the direct links for OSX x64, Win x64, Linux x64, and Android-arm.
 
~>> read forum.rebol.info
** Error: Handshake failure - no supported cipher suite available on server
** Where: fail if if unless parse-messages parse-response while tls-read-data switch --anonymous-- wake-up either until --anonymous-- wait unless do-commands switch --anonymous-- wake-up either until --anonymous-- wait until sync-op either --anonymous-- read
** Near: fail any [select alert-descriptions data/2 "unknown"] ??
ⓘ  Note: use WHY for more error information
So, more informative now .. but not solving the problem.
 
@ShixinZeng Looking at sizes of things with nm, and iso_639_table is pretty big...the third largest chunk of data (after the compressed boot block and compressed host start data). Can we move that feature to an optional extension? Also, might the table compress better and be more useful in Rebol format text vs. a C table?
Doing nm -a --demangle --print-size --size-sort -t d ./r3 on a release build
 
@RebolBot delete
>> [1 + 2]
 
~r3> [1 + 2]
3
 
@RebolBot print/eval, as I said, was created to help you avoid getting 3 when you didn't want it. :-/
 
8:28 AM
@HostileFork You seem to need to said was created to help me.
 
8:44 AM
Again, I think PRINT* might be the better name for the unguarded PRINT. It parallels more the idea that TAKE* will return void if it can't take, for instance, while TAKE will error. The one thing that bugs me is that it seems evaluating and non-evaluating print are different things. So when you find out PRINT is getting a block, and you wanted to print it as a block, you have to say PRINT MOLD VALUE
e.g. PRINT* isn't the answer you want there, if it's just going to let you bypass the evaluated block check, if you wanted to print the block. You could say print [value] instead of print value, although all of this is still not as salient as one would hope it would be.
 
I can't recall what tryrebol did
what's the point of capturing the alert in the source codes line above when almost all of the alerts are fatal errors
error alerts are described here tools.ietf.org/html/rfc5246#section-7.2.2
 
@GrahamChiu If there's a point vs. just failing there, it probably involves code that needs to clean things up.
 
Hard to tell since it fails so early in the exchange
 
9:04 AM
@GrahamChiu Exactly! We need that one! ;D
 
 
4 hours later…
1:21 PM
@HostileFork Nice work about the ODBC, I'm looking at it right now
 
 
1 hour later…
2:28 PM
For the iso639 table, I think we should move POSIX OS_Get_Locale to user space, unfortunately, the only way to retrieve the locale info on Windows is thru C call, so I think we need to keep it for Windows, and have it stubbed for POSIX, and it will be set on startup
 
 
4 hours later…
6:11 PM
Since stylistically, functions in Rebol do not guarantee they will not muck up the arguments in the frame...I probably made a mistake in having DO of a FRAME! not make a copy of the frame's values. You have no real security in thinking you can reuse it.
Performance has been somewhat challenged by the argument Ladislav made, that foo: function [x] [y: 1 | return function [z] [x + y + z]] should work, vs having the returned function complain that x and y are dead when you run it. This means we are creating persistent storage for function frames "just in case", whether it's needed or not.
I've been looking at how to make it so that the persistence happens at the moment of the "leakage", e.g. the above would cause a leak when the body [x + y + z] is copied as part of the function creation, and the WORD! cells with bindings into which the leak occurs are ones that will outlive the stack level where x and y are bound.
 
6:40 PM
I've mentioned before that "binding pollution" is a problem, not just from a mechanical standpoint, but if you write some function foo: function [...] [... return [a b c d e]] and those things have bindings, you may not know quite what it is that you're giving pointers back to. You may think that the words are just data, but since any word can hide a binding, you might be giving back pointers into your local state.
There's cost to preserving the bindings if you meant to return them, because they may be extending the lifetime of some contexts that otherwise wouldn't be alive...and with frame reification, that may even mean creating a persistent object for something that wouldn't have had any GC-able form before. There may be cost to erasing the bindings too.
 
7:11 PM
@ShixinZeng I had a quick glance through the rfc for TLS 1.2 and it didn't seem to be that different from 1.0
However, TLS just handles the handshaking while the encryption is done by the cipher suites. So, can we not just add another cipher suite to the list that is currently supported?
and leave it at TLS 1.0 ? Well, for the moment.
 
@ShixinZeng Note the COLUMNs leak at the moment. What happens with ODBC is you "bind" it to places where you tell it that it can write column data for each row, and it reuses those pointers on successive fetches. The r3-alpha ODBC interface cached these columns specifications when a query is made, and I didn't change it too drastically yet.
 
@GrahamChiu I think we can, but for the ECDHE, there seems to be a few different types/parameters, we need to look into it and see how we should approach it.
 
I've hoped that a "smart" GC would do compaction and memory reclamation, so I hate to be using something like a BINARY! for the backing store memory of a pointer you pass to ODBC and promise its data address won't change across fetches, if those fetches are done in separate evaluations which can span a GC.
But I do prefer using Rebol-structured REBARR to C structs with HANDLE! and their own memory complexities where possible. Anyway, it's a work in progress, haven't gotten to the catalogs yet either.
 
@HostileFork OK. I'll take a closer look when I set up a testing env.
 
@ShixinZeng The main thing we need would be some sort of generalized answer, for these extensions which may have additional library dependencies that someone doesn't always want (e.g. how people don't always want FFI)... people on Unix don't necessarily have unixodbc, etc.
So beyond figuring out if you can reproduce the %tests/misc/odbc-test.reb minimally just working (create connection with Dsn "Rebol" through the ODBC control panel, make database in it called "test"...)
That's the big question, what are we going to do in a systematic manner to make picking these various extensions to get built, which should be uniform across FFI and other such features.
 
7:28 PM
posted on May 31, 2017 by @gchiu

@gchiu wrote: @hostilefork has an ODBC branch in a different repository https://github.com/hostilefork/rebol/tree/odbc So, to grab this branch we need to add it to git So, in your ren-c directory where the git database is we git remote add hostilefork https://github.com/hostilefork/rebol git fetch hostilefork odbc git checkout odbc And to switch

 
wow, those feeds are quick. The ink was barely dry on that one.
 
@HostileFork Agree on selective building
 
8:01 PM
posted on May 31, 2017 by @gchiu

@gchiu wrote: Use this category to help test and expand the ODBC dialect for Windows ( and possibly Linux ) Posts: 1 Participants: 1 Read full topic

posted on May 31, 2017 by @gchiu

@gchiu wrote: Download the latest installer ( https://www.firebirdsql.org/en/firebird-3-0/#Win64 ) And then the ODBC driver ( https://firebirdsql.org/en/odbc-driver/ ) Create a database using the ISQL command line tool ( https://www.firebirdsql.org/pdfmanual/html/isql-create-database.html ) Posts: 1 Participants

 
 
2 hours later…
10:16 PM
0
Q: How to access MongoDB with Rebol

user310291As someone asks so do I: http://ceronio.net/2014/06/taking-a-new-look-at-rebol/ I am impressed by what I have seen so far after having only scratched the surface, and still having a lot of fun learning REBOL. The only gripe I have is that syntax highlighting for editors like Sublime Text or N...

 
11:16 PM
0
A: How to access MongoDB with Rebol

Graham ChiuFrom here The MongoDB Wire Protocol is a simple socket-based, request-response style protocol. Clients communicate with the database server through a regular TCP/IP socket. Rebol is quite capable of handling such protocols and they are easy enough for users to write. You can look at examples ...

 
Maybe we can persuade @rgchris to write a load-bson function?
42
Q: What is BSON and exactly how is it different from JSON?

Akshat Jiwan SharmaI am just starting out with mongoDb and one of the things that I have noticed is that it uses bson to store data internally.However the documentation is not exactly clear on what BSON is and how it is used in mongoDb.Can someone explain it to me please?

 

« first day (2404 days earlier)      last day (1376 days later) »