logs archiveBotHelp.net / Freenode / #ada / 2015 / July / 16 / 2
dbotton
nerdboy I've written and published iOS apps. As for using with Ada, PhoneGap + Gnoga is the only current options.
nerdboy
nothing to do with Ada per se, just a (potential) contract
wtp
dbotton: How do you get Ada use on IOS when there is no compiler? PhoneGap is Javascript only, right? Unless you mean just have a web app made with Gnoga.
jk4
Ada backend
lamasfghdsd
hello
uhm, if i declare a "task", will the corresponding task just spawn and start running? you know, something like "process" in vhdl
the task here is just something like thread in let say .NET, right?
sparre
lamasfghdsd: Yes.
But you can also declare a task type, and then later declare objects of that type.
lamasfghdsd
ah, so even thou its handy, the task doesnt have to be used at all
i can just continue running from main procedure
sparre
Yes.
lamasfghdsd
btw, how can i tell that which one is the main? is this the one that posses the same name as the filename?
sparre
What do you mean by "the main"?
lamasfghdsd
well, the very first piece of code that is run
sparre
Any "library level" procedure can be compiled as an application.
lamasfghdsd
so where does the program start? i know its a stupid question
sparre
But if that procedure with's a package, that package may have some initialisation running first.
At the very beginning of that procedure.
Even a "with" may imply some executable code.
lamasfghdsd
right, maybe i ment the place where the code starts as you type it :D you know like void main or something
like i can declare as many procedures i want, so one of them needs to be declared as main right :D
jk4
there are a few possibilities
you can have something that you consider a main procedure
it can have any name and is just a procedure
outside of a package
sparre
lamasfghdsd: You declare a procedure as an application by asking your compiler to compile it.
lamasfghdsd
so how do i choose which is main?
jk4
however, packages have bodies as well
so when their statements are elaborated things happen as well
sparre
gnatmake some_librarys-test-some_special_feature
nerdboy
wtf? Your display is too small to run Menuconfig!
lamasfghdsd
what display, what menuconfig, wtf :D
sparre
lamasfghdsd: But only library level procedures can be compiled into applications.
Procedures declared inside the specification of a package cannot.
lamasfghdsd
library is everything that is outside the package?
i just want an executable thats all
nerdboy
heh, switching theme rest my terms to 79x23
*reset even
dbotton: can you do that again for (possibly) 15 hrs/wk ?
lamasfghdsd
eh, i'm too depressed anyway
nerdboy
we have one iOS guy on the team but we need two...
darkestkhan
lamasfghdsd: the one procedure you decide that you want as main can be main
as long as it is not declared inside spec file
you tell compiler which one is main
here are some one mains: https://github.com/darkestkhan/passgen/blob/master/src/passgen.adb https://github.com/darkestkhan/debsecan_abbrev/blob/master/src/debsecan_abbrev.adb [in first case it called PassGen]
sparre
And if it is, you just cheat: with The_Package; procedure Main is begin The_Package.The_Procedure; end Main;
darkestkhan
I think he just wanted examples, not exact definition of what is or can be main
dbotton
sorry was with patients, nerboy possibly
nerdboy, possibly
I'm mainly using my dev time for Gnoga but if an interesting project may consider it
If nerdboy is an Ada project using Gnoga then very interested :)
nerdboy e-mail me david@botton.com also if not for me I know another Dev that I believe knows iOS who I've managed before on other projects
darkestkhan
sh*t, I was on wild goose chase - due to error in testbench...
nerdboy
dbotton: it would not start until this fall-ish
dbotton
ok, just be in touch by e-mail and we can discuss, etc.
nerdboy
see inbox...
dbotton: can you paste a sane linkedin profile url?
when i do it i get some weird contact_fubar redirect url...
nara is on a pretty short review schedule
albeit not a huge contract to evaluate
crap, wrong window...
darkestkhan
just how do I get coverage for shared library in Ada??? I'm not interesting in how much code of testbench is executed...
[that on I seem to get w/o much problem]
*one
I just don't seem to get gcno files for lib itself, only for tests
sparre: "It is possible to have an Ada program which does not have a main subprogram. This program will call the elaboration routines of all the packages, then the finalization routines."
from gnatbind manual
ok, managed to get gcno files for library (needed to add -ftest-coverage to switches)
now to properly invoke gcov xD
and as usually for last hour - I can measure how much of my testbench executed but getting to know how much of code in library executed is not that simple...
« prev 1 2 next »