Re: [rust-dev] Rust and Go

2013-05-31 Thread John Mija
After of to do a lot of research, I think that Go never would be widely used on the web so it's a waste of time to try integrate it with Rust (or with Servo). And the main reason is Dart, a language designed for the web which is heavily promoted by Google: https://gist.github.com/paulmillr/120

Re: [rust-dev] Rust and Go

2013-05-29 Thread John Mija
El 29/05/13 22:48, Graydon Hoare escribió: On 13-05-29 02:32 PM, John Mija wrote: Well, the usage of Go like web language would be mainly useful for large web applications like games. Go has integer and float types of 64 bits. So do many languages (including Rust). But as I said, this is not

Re: [rust-dev] Rust and Go

2013-05-29 Thread Graydon Hoare
On 13-05-29 02:32 PM, John Mija wrote: > And what do you think about this one? > > (a) The Go programs must use a function for that the output been to a > socket in Unix systems or to a pipe in Windows systems. > (b) The Go program is compiled from Rust using bindings to the Go's C > compilers).

Re: [rust-dev] Rust and Go

2013-05-29 Thread John Mija
Thanks for your answer, El 29/05/13 21:40, Graydon Hoare escribió: On 13-05-29 12:51 PM, John Mija wrote: How could be integrated the Go language in Rust? To embed a language, it generally needs to present a cdecl callable interface (= accept C callbacks), and be willing to schedule its coro

Re: [rust-dev] Rust and Go

2013-05-29 Thread Graydon Hoare
On 13-05-29 12:51 PM, John Mija wrote: > How could be integrated the Go language in Rust? To embed a language, it generally needs to present a cdecl callable interface (= accept C callbacks), and be willing to schedule its coroutines and IO operations as steps within someone else's event loop. It

Re: [rust-dev] Rust and Go

2013-05-29 Thread Corey Richardson
On Wed, May 29, 2013 at 3:51 PM, John Mija wrote: > How could be integrated the Go language in Rust? > [...] > + It could be used in programs where you want give power to users to run > some tasks, i.e. into a database; today, it's being added JS to some DBMSs > > + To Run web scripts in Go --into

Re: [rust-dev] Rust and Go

2013-05-29 Thread Fedor Indutny
If you'll ever wish to choose SSA interpretation way - feel free to use my library to allocate registers for this stuff https://github.com/indutny/linearscan.rs . Cheers, Fedor. On Wed, May 29, 2013 at 11:51 PM, John Mija wrote: > How could be integrated the Go language in Rust? > > If somebod

[rust-dev] Rust and Go

2013-05-29 Thread John Mija
How could be integrated the Go language in Rust? If somebody were to write a Go compiler to be integrated in Rust[1], which path would be the best one? To create bindings to commands [568][acgl] [2] or write the SSA library/interpreter [3] in Rust? [1] "to be integrated in other language": I