« first day (3267 days earlier)      last day (513 days later) » 

12:37 AM
@rgchris Well ODBC code is generic so the efficiency gain is person-months and testing-,months of another codebase that we cannot currently afford. Focusing on ODBC and doing it right is smarter for now.
But the libRebol API is starting to show the punch it packs, and a statically linked SQLite extension requiring no DLLs or shared libraries sounds well aligned with the mission. But it seems stakeholders can prove their concept in ODBC and then pursue a more tailored solution when it makes sense.
 
 
2 hours later…
2:47 AM
FYI to those not in the know, "John Gritt" is an alias of TSL. e.g. it's either him or someone who wants to be identified as such. Either way same suggestion: don't feed the bears--ignore and do not engage.
 
 
2 hours later…
4:26 AM
2
A: Executable shared libraries

datenwolfThe trick here is, that executables and shared object libraries use the same format called ELF and that libc.so, in collaboration with code found in crt0.o (on *nixes), part of the compiler, actually is responsible for setting up the runtime environment and then call the proper int main(...) func...

We should research being able to use a "live" executable Rebol interpreter as a libRebol provider. It seems condoned on Linux, and there are some historically written about ways to do it on Windows which may be worth hacking it up to see if one can still get away with that.
3
And not too long after midnight here it is folks: An ODBC round-tripping test for various datatypes running on MySQL under unixodbc in a fully automated fashion on Travis...succeeding and exiting w/no leaks, even.
3
While it was two days of pain, it does actually feel pretty good to go back to a codebase that was one of the early encroachments of libRebol use and revisit it, to see how much more one can do. So outside of any practical database purpose (which I guess folks think it has) it serves a role there, and now it's in line with the must-be-on-Travis rule.
 
 
1 hour later…
5:44 AM
@HostileFork Thanks for the reminder. Reacting was tempting. He is right on many points but s****s up on stating a wrong nationality plus assuming for a supposed national characterisation..
How is the ob
ODBC going?
 
 
3 hours later…
8:17 AM
posted on October 11, 2019 by Oldes

Red introduced new put action, which I consider quite useful, when working with simple block of key-value series. One can do: blk: copy [] put blk "a" 1 ;--> blk = ["a" 1] put blk "a" 2 ;--> blk = ["a" 2]

 
8:47 AM
posted on October 11, 2019 by hostilefork

Ren-C has added METHOD...with the twist that it is "enfixed" and hence gets its SET-WORD! from the left. This makes it look more like a normal assignment: o: make object! [ a: 10 b: 20 m: method [x] [ return a + x * b ] ] Due to Ren-C's choices of SHOVE operations, it is possible to use METHOD in an enfix manner even when it is dispatched through a PATH! or non-enfi

 
9:08 AM
@iArnold If you read above, it's going well in that I've managed to rig up a working ODBC MySQL installation process on Linux...which enabled using Address Sanitizer to plug some leaks that were showing up that were hard to find on Windows. I did improvements to make the sample test I made work better and use more libRebol APIs and fewer internal calls. And the install and test runs on Travis.
 
@HostileFork Great! Thanks. My phone did not show the comment above my question yet, hence my question about it.
(And I could not edit my ob comment when I hit the enter instead of the back key)
 
I need to go over the libRebol and rethink it through the lens of C++. It was RenCpp that inspired the design, but then I came up with a way to do it with clever magic bit patterns instead of with C++...which made for a more powerful solution. But I want you to get added checks on API usage at compile time if you use C++, and there may be some other feedback into the design from that process.
It's that feedback loop I'm most interested in; how might the C and JavaScript APIs be adjusted to match findings from revamping the C++ support. This means that revisiting the Qt Ren Garden and getting it building on Travis might be a wise move even in terms of advancing the web agenda w.r.t. API design quality and stability. Not a trivial undertaking, though.
 
10:08 AM
posted on October 11, 2019 by @hostilefork Brian Dickens

@hostilefork wrote: For reasons that seem pretty good in practice, PRINT reduces a block given to it. x: 10 print ["x is" x] ; gives you `x is 10`, not `x is x` An alternative would be that you needed to say print reduce ["x is" x]. But that seems laborious. Ren-C has GET-BLOCK!, and though that hasn't been entirely resolved for what it means, it op

 
 
2 hours later…
12:22 PM
system/options/args needs a name that helps differentiate it better from system/script/args, so that you understand that do/args doesn't set it. system/boot/args? system/options/command-line ? Something in that vein.
I'm tired of making the mistake of using system/options/args and having it work on the command line, only to have do/args not work, and then it always takes me a little bit to puzzle over why not before I realize or remember the difference.
 
1:01 PM
system/boot/options system/options/boot-args
 
1:11 PM
system/options/boot-args isn't terrible, though I wonder if it's enough to make people realize that DO/ARGS doesn't write there. Probably, because I think it's just force of habit...people see system/options/args around and assume it does what they want when it usually isn't. The "cleaner" appearance of system/script/args might be enough to get it to be favored.
 
1:27 PM
Even if that would be enough to help you alone, it would constitute over 90 percent of all development not being troubled anymore.
 
2:25 PM
Been banging my head against the SQLite ODBC support for Unicode for a bit now and as far as I can tell, it's broken on Linux. ODBC does not have an established concept of dealing with unicode outside of WCHAR (the historic UCS2/UTF16 of Windows). Yet it appears that SQLite3 is storing the WCHAR-based strings as UTF-8, then giving it back to you as chars of the UTF-8 encoded length.
Firstly, this breaks the protocol, e.g. SQLite is the only ODBC driver doing this. So it's a bug. If you write WCHAR you should be getting WCHAR back. Being inconsistent undermines the very purpose of ODBC, e.g. we'd have to set a flag saying "oh, you're talking to SQLite, so do something different". Then there's the issue of not having a way of knowing how big a buffer to make even if you want to accommodate it. :-/
 
 
2 hours later…
4:17 PM
It looks like I may be able to work around it, if the behavior is predictable enough; e.g. if the only place you ever get a SQL_CHAR or SQL_VARCHAR back where the length exceeds the column size is this SQLite case of giving back UTF-8. I'll try that.
@rgchris ^-- If you have experience with the existing practice and use of the SQLite driver from Rebol2, I think it would be helpful if there was a coherence such that you'd write the same code whether you were using a statically-linked SQLite or an ODBC interface. A forum post contrasting the ODBC methods to the SQLite methods would be helpful in this regard, perhaps explaining what's good or bad about either.
 
5:05 PM
Did you see this @HostileFork?
 
 
6 hours later…
10:35 PM
@MarkI unixodbc doesn't have choices; there's one sqlite3 ODBC driver selection.
 

« first day (3267 days earlier)      last day (513 days later) »