Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Der Teufel
    @der_teufel:matrix.org
    [m]
    Paper better than Apple
    Paul Jarrett
    @pyjarrett
    Barnes' book is really good, but a few parts need better splits with subsection headings. The margins are wide enough though that i just wrote notes in them.
    I also read mine so much the cover peeled, so mine is now covered in packing tape.
    Der Teufel
    @der_teufel:matrix.org
    [m]
    I have a book about Ada by Ian C. Pyle from 1986 (translation of a book from 1984). Original title "The ADA Programming Language A Guide for Programmers"
    Paul Jarrett
    @pyjarrett
    I think the only big concept that would be hard for a randomly sampled programmer dropped into an Ada code base to understand would be discriminants.
    William J. Franck
    @captain-haddock17
    image.png
    Have a look πŸ‘€ at all the Ada logo page on AdaForge. Comments welcome πŸ˜€
    Irvise
    @irvise:matrix.irvise.xyz
    [m]
    Ada never gets any love in it... maybe we could change that! I know that the SO survey is skewed towards web/new technologies, but it never hurts to be hones and reply honestly! :)
    2 replies
    If someone could, I would like to see this mentioned in Reddit :D first one that posts it, gets the karma :P
    1 reply
    I posted it in IRC and Telegram too :)
    Paul Jarrett
    @pyjarrett
    Does this only instantiate the generic once in a program?
    -- trendy_terminal-string_vectors.ads
    package Trendy_Terminal.String_Vectors is new Ada.Containers.Vectors
        (Index_Type   => Positive,
         Element_Type => Ada.Strings.Unbounded.Unbounded_String,
         "="          => Ada.Strings.Unbounded."=");
    Does with Trendy_Terminal.String_Vectors; instantiate it again, or just use the already given package?
    4 replies
    William J. Franck
    @captain-haddock17
    There’s a survey on Twitter sent by @davefarley77 about What's the best starter language for a beginner programmer?
    8 replies
    C, Python, JS, other=describe it
    Jon A
    @doc_cubit_gitlab
    I'd probably vote for a completely contained environment like Processing
    Python drives me crazy though, with all the virtualenv, pip stuff
    I guess the language itself is fine for a beginner, but the surrounding ecosystem is a mess - not to mention the Python2 -> 3 transition
    The industry needs a QBASIC replacement
    Der Teufel
    @der_teufel:matrix.org
    [m]
    Processing is really nice if you have some background already
    Since text input isn't its easiest part iirc
    Jon A
    @doc_cubit_gitlab
    I thought the Arduino IDE was based on it - do you know?
    Jeremy Grosser
    @JeremyGrosser
    yeah, Arduino started as a Processing fork, but the codebases have diverged quite a bit since then
    not really the same thing anymore
    DrPi
    @drpi:matrix.org
    [m]
    At school, my first programming language was C. It was quite catastrophic for my brain πŸ˜‰ . In another school, one year later, I learned Pascal. This was a good experience. Then I learned C again. My experience with Pascal helped me understand C correctly.
    1 reply
    Paul Jarrett
    @pyjarrett
    How do I do bitshifting with generic modular types (e.g. in a generic function)?
    6 replies
    Jeremy Grosser
    @JeremyGrosser
    function Shift_Left
         (Value  : Unsigned_16;
          Amount : Natural) return Unsigned_16
          with Import, Convention => Intrinsic, Static;
    Thats how the GNAT Interfaces package does it, dunno about other compilers
    barryhouser
    @barryhouser:matrix.org
    [m]
    Isn't there a shift_left() and shift_right()? It's defined in Interfaces packages and works with predefined modular types.
    2 replies
    Jaypatelani
    @Jaypatelani:matrix.org
    [m]
    https://github.com/zertovitch/hac nice to see releases
    Fabien Chouteau
    @Fabien-Chouteau
    In case you are not in the Alire room, there a new release of Alire available: https://github.com/alire-project/alire/releases/tag/v1.2.0-rc1
    We are looking for feedback on this fairly big release. So don't hesitate to give it a shot and send feedback on the repo πŸ™
    DrPi
    @drpi:matrix.org
    [m]
    I'm working on a project which uses dynamic libraries (that I write myself). I have a .gpr file per library. I also have a .gpr file for the main program which references the libraries .gprfiles.
    In this situation, running the program does not work since it does not find the libraries (working on Windows).
    What is the best way to manage this problem ?
    Irvise_
    @irvise:matrix.org
    [m]
    @DrPi maybe look into -Wl,-rpath also known as the linker rpath.
    2 replies
    It links to libraries relative to where the program is being built...
    It is not a wonderful solution, but may work in windows.
    Since it lacks the LD_PATH it is probably how most programs do so.
    Irvise
    @irvise:matrix.irvise.xyz
    [m]
    I suppose to the final program
    9 replies
    barryhouser
    @barryhouser:matrix.org
    [m]
    Quick question. Ada has built-in facilities for supporting foreign calling conventions such as C and C++. Is it possible to add support for other ones?
    1 reply
    Der Teufel
    @der_teufel:matrix.org
    [m]
    Many languages support exporting functions with C calling conveniention so it might be easier to use that instead of trying to get a new calling convention defined somewhere
    barryhouser
    @barryhouser:matrix.org
    [m]
    Well, until you get something like Objective-C
    barryhouser
    @barryhouser:matrix.org
    [m]
    I'm using GNATCOLL.Traces for logging. I'm trying to diagnose why I'm not getting any output. By design, if it's not configured correctly, it outputs nothing instead of giving you an error or warning. Is there a general way to diagnose it other than staring at every line of your configuration?
    2 replies
    onox
    @onox
    An alternative for logging is https://www.codelabs.ch/alog/
    1 reply
    or one of the crates found by alr search log
    Jesper Quorning
    @jquorning
    https://alire.ada.dev/crates/utilada has logging framework too
    DrPi
    @drpi:matrix.org
    [m]
    On Windows, with GNAT community 2020, I tried the following : type t_IPV6_Address is mod 2**128; But got this error : modulus exceeds limit (2 ** 64)
    2 replies
    I didn't know we can't define mod of size higher than the machine word size. Or is it a compiler limit ?
    1 reply
    barryhouser
    @barryhouser:matrix.org
    [m]
    Is there any good docs on Project files covering importing and extending documents? The official Gnat one is a bit confusing and the examples are sparse.
    barryhouser
    @barryhouser:matrix.org
    [m]
    :point_up: Edit: Is there any good docs on Project files covering importing and extending projects? The official Gnat one is a bit confusing and the examples are sparse.