1300+ entries in 0.158s
diana_coman: calling from C something that might look like this in
ada: procedure getstring(input: in Interfaces.C.char_array; Output out Interfaces.C.char_array)
diana_coman: no requirement re format, it's really: pass this here char * to
Ada safely and recover this String from
Ada via an "out String" parameter (char * on C side)
diana_coman: ave1, my current solution is to pass the length as a separate parameter indeed and in addition to actually copy octet by octet; To_C and To_Ada still fail me on occasion so I can't really rely on them - this might be of course because I don't fully understand them yet; in any case, please write it up, pretty please
a111: Logged on 2018-02-28 15:07 diana_coman: ave1 have you ever passed a char * from c to
ada in such a way that
ada actually sees the correct length for it? there is something I don't quite understand there as To_C seems to use Target'Length so the length should be set
ave1: diana_coman: this,
http://btcbase.org/log/2018-02-28#1786496, triggered a short dive into the whole array sending mechanism in
Ada. Will write it up and post tomorrow, yes it is possible but you'll need to make some internal structure that
Ada uses. Also I doubt it is much better than sending the pointer with a separate length parameter.
☝︎ diana_coman: ave1 have you ever passed a char * from c to
ada in such a way that
ada actually sees the correct length for it? there is something I don't quite understand there as To_C seems to use Target'Length so the length should be set
☟︎ diana_coman: ave1, aha, byte by byte was what I ended up doing at testing stage just to see it really working; hopefully I'll still get it working properly with To_C as such and then I can still avoid the C.Strings, stick with the procs To_Ada and To_C; it's not going to be pretty but at least the mess is as small as I can see a way to do it now
ave1: BTW for an
Ada IRC bot experiment, I'm working with buffers on both sides (
ADA <--> C) and moving bytes one by one. This seems to deliver the cleanest code. (but will probably not ever be Mbytes per second)
diana_coman: ave1, tbh I've been trying to avoid .c.strings at least but atm it looks set to still make its way in because calling
ada stuff from c and getting char * result is an even worse mess with interfaces.c only (i.e. with char_array vs chars_ptr)
ave1: the fun of C strings, I hope you can use the procedure versions of To_Ada and To_C.
spyked:
http://btcbase.org/log/2018-02-26#1786219 <-- hey, that sounds like a really neat project, I wouldn't mind adding it to the list. on a related note, /me has been on a sort of semi-holiday for the last 2 months, which led to a lot of exploration on items of potential republican interest. e.g. the
ada lisp scriptlang, an irc logger bot (which I could spin into a rss bot), the text browser thing and some out-of-the-blue ro-en Trilema
☝︎ ave1: Also, as it happens on some bot code in
ADA, but this is slow going
a111: Logged on 2018-02-23 15:45 mod6: I was thinking lsat night about my version of V in
Ada, and am using shellouts there for the gpg related things. even with an integrated FFA, still need to add in an integrated Keccac from s.mg - those two I can work around. Others might be harder than it sounds.
mod6: I was thinking lsat night about my version of V in
Ada, and am using shellouts there for the gpg related things. even with an integrated FFA, still need to add in an integrated Keccac from s.mg - those two I can work around. Others might be harder than it sounds.
☟︎ diana_coman: I'll focus for now on eucrypt; it has anyway
ada-c integration itself so I'll see what I have by the end
mircea_popescu: diana_coman i guess once the eucrypt adventure is sealed a cover letter re
ada-c integration may be a good idea, for future reference.
diana_coman: well, I can talk only about gprbuild from
ada being bright enough
mircea_popescu: in other news : as work on eucrypt is winding down -- the whole item is just about complete, needs serpent and we've decided to add an oaep-rsa wrapper (mostly as a pretext to do some
ada-c interop testing), so roughly speaking by end of month it should actually be done -- we're moving on to shaping up the eulora client-server comms model. this will mostly be a design discussion, will take place in #eulora, prolly take up som
mod6: hmmmod6@localhost ~/
ada/alf/ffa/ch10/ffa/ffacalc $ command -v tr
mircea_popescu:
http://btcbase.org/log/2018-02-02#1779409 << this should prolly be standard preface of
ada behaviour discussions ; ffa or non-ffa related. asciilifeform maybe you should add it as a comment you know ? at the top of the pile, "if anything's strange say @me in #trilema, please preface the saying with and-here's-my-grep-v"
☝︎ a111: Logged on 2018-02-01 21:24 phf: diana_coman: ty, i'll try wiring it in, and keep you posted. i assume
ada<>c interop is pretty straightforward, though i won't have a chance to try until later next week. suddenly busy
diana_coman: phf,
ada<->C interop was quite straightforward last time I tried it, didn't take much at all; you'll need to add a few exports iirc
phf: diana_coman: ty, i'll try wiring it in, and keep you posted. i assume
ada<>c interop is pretty straightforward, though i won't have a chance to try until later next week. suddenly busy
☟︎ BingoBoingo: <asciilifeform> what exactly is '
ada apache' ? << Done right prolly something similar to lig
httpd without the C
a111: Logged on 2018-01-29 17:10 asciilifeform would like to see a complete wwwtron in
ada. but does not have any spare arms presently for such a thing.
mod6: yes. I'm starting to love
ada, at least, syntactically. The way you've used it, is very straight forward -- at least once one understands how array access / slices work.
mod6: The good news is, I started really digging into
ada and your sneak-previews early last year.
mod6: Some of this is my fault, I've been trying to keep up here. Getting kinda swampped with a bunch of things at once. But! These are all good things. FFA, eucrypt,
ada, vtron stuff, et. al.
diana_coman: this is why I said earlier "check endianism at runtime" because yes, in
ada you can get that
caaddr: the hovercars will be programmed in
ada caaddr: instead we have... what do we have? we have the blockchain but we're still using dns. we have common lisp but we're still using scheme, or, worse, clojure. we have
ada but we're using rust. "we" being "we the people", as in the redditoid masses
caaddr: I wonder how early in such a stack you would add the kind of compile time protections that
ada guarantees. compile time protections seem to be the hardest thing to keep a programming language at "fits in head" size
caaddr: it would be nice to bootstrap an entire operating system from machine code to forth to some strange mix of forth and
ada,
ada, then tinyscheme, and finally a sane common lisp subset
spyked: thanks shinohai. :D the plan is to (at the very least) periodically share items of republican interest that I'm working on (e.g.
ada lisp). progress has been very slow so far, but it's picking up
mircea_popescu: and yet a bundle of c that produces exact same binary as your
ada compiler does -- could be written
mircea_popescu: and, back to the trunk, we've not even discussed the horror of translation. suppose you write a thing, in
ada. suppose another, who works on a lisp tree, takes your thing and identically translates it to lisp (here defined, that on any correct machine his code will in all cases behave indentically to yours). what's your v to do here ?
mircea_popescu: why not actually do it then, and first construct an
ada circular ring lisp-memory stack first ?
a111: Logged on 2018-01-07 04:53 esthlos: issue resolved by moving to 2016
ada a111: Logged on 2018-01-09 17:59 mircea_popescu: hows teh
ada musling coming along ?
BingoBoingo: Major projects in this channel include hardware TRNGs, OS replacement utilities written in
ADA, and other peer to peer and noone else communications tools
PeterL:
http://btcbase.org/log/2018-01-06#1766126 << so I was like "how hard could this be?" and I am trying to wrap my head around what this comes from, so I open up the gpg source code, and bleh, code is sooo much easier to read when it is written in
ada by asciilifeform!
☝︎ esthlos: issue resolved by moving to 2016
ada ☟︎ mircea_popescu:
http://btcbase.org/log/2018-01-04#1763745 << /me dutifully follows, and duly falls upon "2) What was not implemented until recently was functions returning unconstrained arrays. This is a very tricky thing to do, as I'll describe in a moment. The week before Tri-
Ada, I added a temporary, kludgy implementation to GNAT. About the only thing it had to say for itself is that it worked, but it creates serious memory leaks. It
☝︎ danielpbarron: i guess he's gonna learn himself some
ada, or lisp if anyone wants. feel free to instruct him
danielpbarron: he was asking for a job so i asked if he had tits, he didn't, so i said do you know lisp or
ada danielpbarron: there's a bunch of ongoing projects in here, and
ADA is a prefered language
danielpbarron: !!rate jpxe 1 aspiring
ADA coder i found in the l0de chan
a111: Logged on 2017-12-27 02:01 asciilifeform: picture a kind of 'multiverse
ada', where you dun call foo(bar), but instead foo:somepatchid(bar:somepatchid) etc, explicitly conforming to 'multiversism'...
phf: knuth managed to do a lot to keep tex what it is, given that he's essentially a pacifist academic. there aren't many other examples (common lisp,
ada) where preservation has been taken to this extreme.
shinohai: Logged 13:19 +l0de yes, I'm a gyp >>> dasracist.
ada a111: Logged on 2017-12-11 20:01 diana_coman: asciilifeform, fwiw I read it as in went through it line by line and with pencil and paper; ran it too at the end, played a bit around with tests and that; and since we are at this, nitpick: in FZ_Swap why T:=X if already initialised at declaration or what am I missing of
Ada in there?