comp.lang.ada
 help / color / mirror / Atom feed
* scylladb.com +php vs gonga.com and what? or just use gnoga with scylla?
@ 2019-03-14 18:10 Rabican
  2019-03-14 20:01 ` Shark8
  0 siblings, 1 reply; 4+ messages in thread
From: Rabican @ 2019-03-14 18:10 UTC (permalink / raw)


What do ada gods use for scalable databases?

scylladb.com looks cool

I understand ada is fast and maintainable and easy to learn.

Can it use scylla ? how easily?

or if there some other data solution for gnoga.com/ada?

Can postgresql if used properly scale?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scylladb.com +php vs gonga.com and what? or just use gnoga with scylla?
  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
  2019-03-21  1:41   ` Rabican
  2019-03-21  5:17   ` gautier_niouzes
  0 siblings, 2 replies; 4+ messages in thread
From: Shark8 @ 2019-03-14 20:01 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scylladb.com +php vs gonga.com and what? or just use gnoga with scylla?
  2019-03-14 20:01 ` Shark8
@ 2019-03-21  1:41   ` Rabican
  2019-03-21  5:17   ` gautier_niouzes
  1 sibling, 0 replies; 4+ messages in thread
From: Rabican @ 2019-03-21  1:41 UTC (permalink / raw)


On Thursday, March 14, 2019 at 4:01:53 PM UTC-4, Shark8 wrote:
> 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.

thx!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scylladb.com +php vs gonga.com and what? or just use gnoga with scylla?
  2019-03-14 20:01 ` Shark8
  2019-03-21  1:41   ` Rabican
@ 2019-03-21  5:17   ` gautier_niouzes
  1 sibling, 0 replies; 4+ messages in thread
From: gautier_niouzes @ 2019-03-21  5:17 UTC (permalink / raw)


On Thursday, March 14, 2019 at 9:01:53 PM UTC+1, Shark8 wrote:

> > 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.

Googling "gnoga database" gets you to http://www.gnoga.com/user_guide.html
where MySQL and SQLite are mentioned.
I use Gnoga with SQLite, it works perfectly. The entire database server is linked statically to the executable, so the entire server (Web + Gnoga + database engine) is contained in a single executable!...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-21  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-03-21  1:41   ` Rabican
2019-03-21  5:17   ` gautier_niouzes

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