log☇︎
1700+ entries in 0.386s
asciilifeform: http://12000.org/my_notes/ada/index.htm << linked via subj's www. potentially handy.
phf: asciilifeform: thanks for the ada updates, i was reading knuth's book 3 on arbitrary precision multiplication, so you're 20 steps ahead of me
asciilifeform: i wonder if there is any other language, than cl and ada, in reasonably common use today, that does not presuppose 8-bit bytes.
asciilifeform: 1 of 2 . ( the other... ada. )
asciilifeform: the saddest thing about ada is that there is only one. ( only one properly-specified, multi-implementation typesafe language that can build for small (kB ram) as well as large systems . )
mircea_popescu: ah nm, ada huh.
phf: i decided to learn ada today
mircea_popescu: you want me to read and understand 500 lines of ada "sneak preview" in real time ?
phf: i take it and/or/not are bitwise in ada?
trinque: you know, ada syntax is *quite* like plpgsql
mod6: was wondering what we might do about such things with Ada or trbi
jhvh1: shinohai: Arbitrary length integer in Ada - Stack Overflow: <http://stackoverflow.com/questions/1309195/arbitrary-length-integer-in-ada>; The Big Number Page: <http://bignumber.chez.com/>; Ada –A Crash Course - VTC - Vermont Technical College: <http://web.vtc.edu/users/pcc09070/TutorialAda/AdaCrash.pdf>
shinohai: !~google Ada Big_Number
mod6: !~s Ada Big_Number
mod6: oh just me dorking around with Ada.
asciilifeform: ( shocking seekrit!11: pascal grew up and turned into ada in '83 )
mod6: yeah Ada 2012
mod6: thought it might be inherited from Ada.* or whatever? or do i just need to implement my own?
asciilifeform in other noose, now has a pretty clean 'transparently mmapize arbitrary object to disk' ada thing.
asciilifeform: not unrelatedly, asciilifeform now has a working mmap glue for ada.
CompanionCube: would phuctor be ada-ized?
asciilifeform: ben_vulpes: see my ada snippets from last week, pasted here
asciilifeform: trb (the currently existing item) could quite conceivably run on entirely different type of machine, under emulation (smbx , for instance, shipped... believe -- a c compiler, in genera. along with fortran, ada..)
asciilifeform: one possible 'fix' is ada-shaped -- compiler makes up for the retardations of c machine, inserts array bounds checks, type checks, etc.
asciilifeform: incidentally the folx who designed ada, read thompson's paper. and immediately acted. which is why in ada you get 'driving stick'-style control over the compiler, the order in which it puts down routines, and data structures during 'elaboration', and can leave bread crumbs for manual binary auditor (yes) to look for when he compares (yes) binaries built on different systems for same rocket. ☟︎
asciilifeform: i got a nice hardcover of https://www.ada-ru.org/V-0.4w/index.html , for instance, made.
asciilifeform: currently i suspect that a complete btctron can fit in 10k-line of ada.
asciilifeform: as it is, if grep -i -r unchecked * returns nil, and proggy builds in my gnat -- it is kosher ada
phf: anything can have a pose. if it becomes so that "no real hacker", you're going to have plenty of "real hackers" at ada hackathons wearing "ada: make you hack better, bitch" tshirts
phf: fwiw ada is a harsh mistress is an illusion. if it were to become fashionable to write ada among the hacker news crowd, there will be rapid attempts at modernization. common lisp went through that process
a111: Logged on 2017-03-29 13:27 asciilifeform: ada in particular is 'a harsh mistress', you can sit for 3 hrs and your thing simply won't build, gcc won't eat it, and you gotta actually open the book and grasp the reason why, brute force knob-twiddling will get you 0 result.
a111: Logged on 2017-03-29 13:27 asciilifeform: ada in particular is 'a harsh mistress', you can sit for 3 hrs and your thing simply won't build, gcc won't eat it, and you gotta actually open the book and grasp the reason why, brute force knob-twiddling will get you 0 result.
asciilifeform: i don't bring them up together out of superficial similarity, but from fundamental one -- v rejects 'merge' as a concept; ada rejects the promiscuous pointer and cast
asciilifeform: ada in particular is 'a harsh mistress', you can sit for 3 hrs and your thing simply won't build, gcc won't eat it, and you gotta actually open the book and grasp the reason why, brute force knob-twiddling will get you 0 result. ☟︎☟︎
asciilifeform: mod6: http://ideone.com/a1ky4l << mandelbrot in ada.
asciilifeform: mod6: https://en.wikibooks.org/wiki/Ada_Programming/Attributes << almost all of the attributes, in helpful list
mod6: i have to say that some of the ada stuff is a bit non-obvious by syntax only.
a111: Logged on 2017-03-29 07:09 ben_vulpes has clearly not read the ada books
a111: Logged on 2017-03-29 07:06 ben_vulpes: unrelatedly, this isn't entirely inscrutable: https://github.com/cforler/Ada-Crypto-Library/blob/master/src/crypto-asymmetric-ecdsa.adb#L79
ben_vulpes has clearly not read the ada books ☟︎
ben_vulpes: unrelatedly, this isn't entirely inscrutable: https://github.com/cforler/Ada-Crypto-Library/blob/master/src/crypto-asymmetric-ecdsa.adb#L79 ☟︎
asciilifeform: i can already picture naggum, might have said, 'hey whatsthematter gnatelim is not part of ada standard, nobody promised you that it'll work and not cut out beating heart from an in-use package'
asciilifeform: usually when i end up picking up entirely new system ( most recently -- ada )
mod6: I dont need a ticket for this, but man, I really gotta get into the swing of Ada.
asciilifeform: fuzzed it, in various ways, ada bounds checking worx like a champ in all cases
a111: Logged on 2017-02-02 01:08 asciilifeform: http://unzip-ada.sourceforge.net/za_html/index.htm << astonishingly readable literate-programming d00d. and he has a bunch of these.
mircea_popescu: ie alloocate ada-heap ?
mircea_popescu: but i'm not about to burn regency furniture for heat, and i'm not about to set girls that can go out and talk to people in front of a computer to ada.
asciilifeform: have'em learn ada, etc.
asciilifeform: (specifically unlike ada, where you can explicitly specify what this is called, 'elaboration', procedures)
mircea_popescu: speaking of, asciilifeform what about that ada rsa for eulora!
asciilifeform: http://www.ada-auth.org/arm.html << on this page, there are zip of plain ascii (!!) vers of the ref and rationale, also.
asciilifeform: ( the canonical standards are also on www, http://www.ada-auth.org/standards/ada12.html , download the html to disk and use like lisp folks use clhs)
asciilifeform: mod6: http://cs.fit.edu/~ryan/ada/programs << quite possibly the best www resource re subj.
mod6: I already bought that Ada 95 lecture notes book and had it on my shelf. found it there lastnight. heh.
mod6: lol, so get this. i was thinking, "man i really should have gotten a Ada ref book..."
ben_vulpes: asciilifeform: 'SPARKify'? reduce existing code to fit into SPARK subset of ada?
asciilifeform: there is a dark heathen world of proprietary ada compilers, mostly for winblowz, but they are so rare, you will find them on no warez, anywhere.
asciilifeform: problem is: you need a working existing ada !
jurov: https://bugs.gentoo.org/show_bug.cgi?id=603790 "Assignee: ada@gentoo.org → maintainer-needed@gentoo.org"
asciilifeform: mod6: the bulk of what takes 'getting used to' in ada is not the syntax, but the forced sanity, e.g. you get (grudgingly) a malloc, but not a free! idea being, you get to pick a memory footprint and LIVE in it
mod6: ah, yes. very cool. how's ada going for ya? I've only recently dipped my toe in that water.
asciilifeform: ada proggy, speaks the protocol as defined by trb; but does not attempt to verify blocks, instead uses its 'horse' (trb node it rides) as an oracle
asciilifeform: mircea_popescu: e.g., ada refmanual & rationale, whole talmud, is also on www... but somehow 0 rush to snatch dung
diana_coman: aha, I had a bit of a look at ada but sadly no time to properly play around with it; I'm looking forward though to your ada implementations
asciilifeform: diana_coman: spiffy article, good illustration of the kind of affair ada was built to prevent
asciilifeform: mircea_popescu: this is actually how the heavy industrial realtime ada folx do it. fork the standard lib.
asciilifeform: pure standard ada.
asciilifeform: http://unzip-ada.sourceforge.net/za_html/index.htm << astonishingly readable literate-programming d00d. and he has a bunch of these. ☟︎☟︎
asciilifeform goes to the b00kz room to fetch 'ada 2012 rationale', to learn whether he is complete moron, or wat.
mircea_popescu: ok. what's this to do with ada i dunno, but anyway, there it is.
mircea_popescu: the cpu does bounds checking in your ada ?
mircea_popescu: so basically, what my mind has strained from this convo, is that ada implements bound checking badly ; in that it (wrongly) assumes that it can always source a larget item to compare to, like < size+1.
mircea_popescu: well good for it, but if it introduces it without providing it then ada's an idea man ; we have plenty of these up in wash dc. their product is called "unfunded mandates".
asciilifeform: but ada also introduces notion of sane (non-underflowing and non-overflowing, and in fact arbitrarily constrained) types.
asciilifeform: this comes with the territory of 'naked' register. in ada you have to explicitly ask for this horror, it is called 'modular type'. all c types are it.
asciilifeform: likewise default assumption in ada world is that there is not necessarily a heap. (safety-critical proggies typically use NO HEAP EVER)
asciilifeform: as per ada standard, in order to have a constrained type (e.g., type foo is range 0 .. 10; ) the compiler must find a X such that X is representable on the machine as a fixint, and range of X is larger than asked-for range
mircea_popescu: i'm sorry, "the gcc ada implementation"
mircea_popescu: http://btcbase.org/log/2017-01-31#1610204 << wait so ada is brokened ? ☝︎
asciilifeform: because -- marvel of marvels, gcc has nfi how to generate bounded unsigned 64bit types in ada on x86-64.
ben_vulpes: > NAN BILLION TOTAL ADA EXCHANGED BY NOW
ben_vulpes: ada /and/ cardano?
asciilifeform: incidentally i am not seeing much uptake for the 'walking the walk' of mircea_popescu's position, so far. afaik asciilifeform is the only one currently struggling with ada, for instance.
asciilifeform: mircea_popescu: ada's 'modular types' come to mind
asciilifeform: ada also.
asciilifeform: http://btcbase.org/log/2017-01-02#1595293 << would you prefer ada's 'begin foo' / 'end foo' ? ☝︎
asciilifeform: http://wotpaste.cascadianhacker.com/pastes/HQmMH/?raw=true << example in ada. < 700 ln. ☟︎
a111: Logged on 2016-12-27 22:16 ben_vulpes: not indefinitely postpone releasing this vpatch while i wait for stan to release an ada cryptor and link that from cl
mircea_popescu: now then. can the lispheads live with the idea of an ada tmsr-cryptolib ? perhaps with it as a reference and a lisp copy ?
ben_vulpes: not indefinitely postpone releasing this vpatch while i wait for stan to release an ada cryptor and link that from cl ☟︎
mircea_popescu: course since the nsa consulting work for minigame is going to produce ada rsa, it might be an idea to have an ~ada~ tmsr crypto lib. ☟︎☟︎☟︎
asciilifeform: (a la ada)
asciilifeform: it is quite present in, e.g., ada.
asciilifeform: (there is also pascal, but there exists , afaik, no reasonably cross-arch compiler today for it. and ada is a variation on the pascal theme anyway...)
asciilifeform: of the type-safe/bounds-safe languages, ada is the only one which fills this description.
mircea_popescu: that open-ness is imaginary at best ; minigame will use ada rsa for example.
asciilifeform: because ada per se is very, very hairy hair shirt.
asciilifeform: fwiw i am still open to suggestions re 'the better ada'
asciilifeform: ada suffers from the latter problem also