comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: scylladb.com +php vs gonga.com and what? or just use gnoga with scylla?
Date: Thu, 14 Mar 2019 13:01:51 -0700 (PDT)
Date: 2019-03-14T13:01:51-07:00	[thread overview]
Message-ID: <a2575a13-2c3e-46b8-a2ad-41844ccba05c@googlegroups.com> (raw)
In-Reply-To: <3b20307d-659b-497f-bb73-db39df011d4c@googlegroups.com>

On Thursday, March 14, 2019 at 12:10:56 PM UTC-6, Rabican wrote:
> What do ada gods use for scalable databases?
> 
> scylladb.com looks cool
> 
> I understand ada is fast and maintainable and easy to learn.

It is.
Especially if you know another programming language.
 
> Can it use scylla ? how easily?

I don't know if it can; but if it has bindings to C, COBOL, or FORTRAN it can do so *easily* because such foreign-function interfaces are part of the standard. (Annex B is titled "Interface to Other Languages") Annex B also has C++, but my understanding is that there's enough variances in the C++ standard that it can depend on which C++ implementation you're trying to interface with. (I haven't used the C++ foreign-interfaces so I cannot give you a more definite answer WRT C++.)

Interfacing with other languages is _VERY_ easy. -- As an example let's say you've got a banking program in COBOL and you want to use a function which takes a USER-ID typed value and adds a currency typed value to it, this could be as simple as:

Type User_ID is range 0..2**32-1 -- a 32-bit ID, w/ COBOL's layout.
  with Size => 32, Convention => COBOL;
Type Currency is delta 0.01 range 0.00..1_000_000_000.00 -- $0 to 1 Billion.
  with Size => 64, Convention => COBOL;
  
Procedure Deposit( Account : in out User_ID; Amount : in Currency )
  with Import, Convention => COBOL, External_Name => "DO-DEPOSIT";

> or if there some other data solution for gnoga.com/ada?
I don't know if Gnoga has an integrated DB solution; if it's small to medium sized you might be able to get away w/o a DB at all and simply use containers and streaming for persistence.
 
> Can postgresql if used properly scale?
Yes.

  reply	other threads:[~2019-03-14 20:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14 18:10 scylladb.com +php vs gonga.com and what? or just use gnoga with scylla? Rabican
2019-03-14 20:01 ` Shark8 [this message]
2019-03-21  1:41   ` Rabican
2019-03-21  5:17   ` gautier_niouzes
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox