logs archiveBotHelp.net / Freenode / #ada / 2015 / July / 29 / 1
otjura
anyone using emacs with ada-mode? 24.5 and 5.1.8 and there is no indentation and it formats Ada.Text_IO etc to Ada.Text_Io.
jk4
otjura: it does indent, but seemingly only after you complete the block iirc
i also noticed the capitalization issue, though i haven't tried to fix it
Lucretia
yeha, emacs ada-mode is pretty sh*t
jk4
i don't feel that way; the new version is... new
Visaoni
sparre: You'll want to check, but last time I was messing around with making sure a mod type was a power of 2 I ran into some problems with GNAT.
although now that I'm able to see properly, looks like you went about it differently from me
Lucretia
well, sometimes the new emacs-mode will indent after a function has been completed, but it mostly won't. it's sh*t
jk4
!quote
Allegra--
Well, I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it.
-- Elwood P. Dowd
sparre
Good morning (+time zone corrections)
darkestkhan: I suppose you figured out the differences?
darkestkhan
otjura: check configuration options in emacs mode
sparre: not really - it was sleep time by then already
sparre
darkestkhan: I was quite sure that Dynamic_Predicates weren't allowed in case statements, but GNAT seems to disagree with me on this subject.
Well.
It looks like GNAT is buggy in this regard.
It treats a Dynamic_Predicate with a static predicate expression as a static predicate.
(Action) has problems with screen-cast recording. :-(
VLC doesn't seem quite cooperative. Kazam starts a recording and then disappears.
Visaoni
have you tried open broadcaster? messed around with it briefly a couple years ago, seemed to work alright
sparre
(Action) just found the "recordmydesktop" package. It seems to work well.
Only problem is that I can't find my cabled microphone, so you hear lots of typing on the recording.
specing
sparre: ffmpeg -f x11grab -b 1000k -r 30 -i :0.0
sparre
specing: Both screen, mouse and sound? The only tricky part with "recordmydesktop" is that you stop the recording by killing the program (and that may actually be good).
I'll put my test recording online for comments later today.
But I'll also go hunting for my microphone to improve the sound quality.
darkestkhan
!last
specing
sparre: only tested screen and mouse
sparre
It looks like "recordmydesktop" is very easy to integrate into my window manager (FVWM).
Visaoni
(Action) dreams of a day when building things is nice and trivial
marble_visions
hi all, does the numerics/elementary functions include a factorial function/procedure?
search says no, but I want to make sure.
Visaoni
marble_visions: I wouldn't really know, but you can check the source files yourself to be extra double sure if you want... you can use gnatkr to find the screwy file name from the proper name
darkestkhan
marble_visions: check RM
iirc it doesn't
it doesn't
marble_visions
thanks all
will check RM and do a FIND on the sources
but it turns out I need something more
since 40! doesn't fit in 64 bits
pnoffke
Lucretia: I have to agree about the new emacs ada-mode. Did you find a good alternative? I tried using a project file with the old ada-mode and had some troubles with that, too.
Without a project file, then emacs always pops up a window asking for the source file when I click in the compilation output (unless it's in the current directory).
joakim
marble_visions: I believe Jeff Carter has an implementation of unbounded integers in PragmaARC... just a spontaneous thought that may not be what you are looking for...
marble_visions
joakim: I might use that after i've tried the other trickery
i need to compute a multiset permutation
and I think I can get away with not using a big number library
since it's n!/m1!*m2!...
that is, the result should be small, even though the intermediates are big
ATM i am turning the factorial into an array and dividing n and the m's with equal amounts
to shrink them as much as possible, and then i'll do the computation (fac + dividing)
s/dividing/division/
Visaoni
it would be nice if gprbuild would at least use the right damned compiler
nerdboy
moin
Visaoni
after pretending to be make, seems I have the new version of gnoga going
dbotton: when using gnatmake, it seems the simple_components don't get fully/properly/something built. once I went in and built + installed them myself, the rest worked (may not have needed to install, didn't try without)
sparre
marble_visions: Isn't it pretty easy to simplify n!/(m!*p!)?
Lucretia
pnoffke: I'm using gps atm, it's ok. it can't do split windows though which would make it better
and it crashes
i've also had the autocorrect go wrong once
wtp
Shark8: Is there a link to the results of the Ada impression survey?
I already filled it out, but I would like to see what other responses get in afterwards
Visaoni
wtp: I think this is it https://docs.google.com/spreadsheets/d/1ixr84Q8zif44IxX4x22o6I1UBZ_knu4pp6q4Yft5GaI/edit#gid=588264163
wtp
nice. Thanks!
pnoffke
Lucretia: Window -> Split Side-by-Side isn't what you want?
Lucretia
I want splitting either way and both.
pnoffke
I've had it crash on me a fair bit while debugging (GPS 6.1.1 on Linux)
Lucretia
ahh, never seen that before, ta.
still a sh*t version of it tho. in wx, you can create them by dragging
pnoffke
np. not sure how to remove the split other than closing a window.
(and all windows in that split)
Lucretia
just close it
sparre
(Action) finds his microphone - and finds out that a Thinkpad T420 doesn't have a microphone plug. :-/
specing
looool
combo ports for the win! /s
sparre
I could of course see if the headphone port actually is a combo port.
mk270
hello - does Ada have a good means of doing something like popen(), i.e., reading from a subprocess?
broadly speaking, the code only needs to work on unix-like hosts
Lucretia
you can use posix bindings
mk270
aha - thanks - why didn't i think of that? :)
is that florist? the website (sourceforge, which just got sold) seems to be down?
Lucretia
florist, get it from libre.adacore.com
mk270
somewhat sheepishly, i must report it was already installed on my OS :)
marble_visions
sparre: i am thinking of something along that lines, not calculating the factorial but dividing until I get a 1 as a divisor
then i multiply what's on top to get the result
but i got fed up and just got the big_numb from jerome delcourt
now I am looking into how to include sources from another directory
darkestkhan
marble_visions: gpr project file...
marble_visions
darkestkhan: doing project euler problems, I can pass with a 10 line makefile :)
and even that is boilerplate and gets copy-pasted across problems
Visaoni: is that poll open to all to fill in?
Shark8
wtp: I see Visaoni provided the results-link for you... what do you think of the responses so far?
marble_visions
man, a second big number library is buggy beyond use
Shark8
marble_visions: Yep, here's the link:
https://docs.google.com/forms/d/15mmK_qV8P9DKEhHUnIb1RFElQFTjVTZHH0S6pO1iWrQ/viewform?usp=send_form
marble_visions
Shark8: Simple (Command-line processing) command-line processing is hard! :)
Shark8
Depends on your system. If it's something like VMS it's a lot more simple than the C-ideal that's been shoved down everyone's throats.
marble_visions
true dat.
an answer: "bro....stop plugging Ada..."
« prev 1 2 next »