[rust-dev] Language to replace C

2014-03-04 Thread John Mija
Every time there is a new language, developers have to start to developing from scratch the same algorithms. The alternative has been to use C libraries already built since is much easier to interface with other languages and a lot of languages will let you call C functions directly. But C lan

Re: [rust-dev] Language to replace C

2014-03-04 Thread Patrick Walton
On 3/4/14 11:43 AM, John Mija wrote: I'm supposed that a linker could be built to link that intermediate file together to a Rust program. Just use cgo to call Rust. Patrick ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/list

Re: [rust-dev] Language to replace C

2014-03-04 Thread Tony Arcieri
On Tue, Mar 4, 2014 at 11:43 AM, John Mija wrote: > So, why don't use a simple language but safe like Go? Go isn't a systems programming language. Go is a low-level managed language with a mandatory runtime and garbage collector. -- Tony Arcieri ___

Re: [rust-dev] Language to replace C

2014-03-04 Thread John Mija
El 04/03/14 19:51, Tony Arcieri escribió: On Tue, Mar 4, 2014 at 11:43 AM, John Mija mailto:jon...@proinbox.com>> wrote: So, why don't use a simple language but safe like Go? Go isn't a systems programming language. Go is a low-level managed language with a mandatory runtime and garbage c

Re: [rust-dev] Language to replace C

2014-03-04 Thread Clark Gaebel
...and the garbage collector? On Tue, Mar 4, 2014 at 2:56 PM, John Mija wrote: > > El 04/03/14 19:51, Tony Arcieri escribió: > >> On Tue, Mar 4, 2014 at 11:43 AM, John Mija > > wrote: >> >> So, why don't use a simple language but safe like Go? >> >> >> Go isn't a

Re: [rust-dev] Language to replace C

2014-03-04 Thread John Mija
El 04/03/14 20:04, Clark Gaebel escribió: ...and the garbage collector? The compiler introduces the FUNCDATA and PCDATA directives which contain information for use by the garbage collector: http://golang.org/doc/asm So, that information would not used by the linker like it's used by the

Re: [rust-dev] Language to replace C

2014-03-04 Thread Daniel Micay
On 04/03/14 02:43 PM, John Mija wrote: > Every time there is a new language, developers have to start to > developing from scratch the same algorithms. > The alternative has been to use C libraries already built since is much > easier to interface with other languages and a lot of languages will le

Re: [rust-dev] Language to replace C

2014-03-04 Thread Daniel Micay
On 04/03/14 02:56 PM, John Mija wrote: > > El 04/03/14 19:51, Tony Arcieri escribió: >> On Tue, Mar 4, 2014 at 11:43 AM, John Mija > > wrote: >> >> So, why don't use a simple language but safe like Go? >> >> >> Go isn't a systems programming language. Go is a low-le

Re: [rust-dev] Language to replace C

2014-03-04 Thread John Mija
The other option that I had in mind, would be to build a modified version of Go (removing some statements) which could be used like "universal language". Finally, to build an automatic transformer to the desired language, like a transformer from Go to Rust. El 04/03/14 20:14, John Mija escribi

Re: [rust-dev] Language to replace C

2014-03-04 Thread John Mija
El 04/03/14 20:24, Daniel Micay escribió: On 04/03/14 02:43 PM, John Mija wrote: So, why don't use a simple language but safe like Go? Go isn't safe. It has data races. True, but Go includes a built-in data race detector: http://golang.org/doc/articles/race_detector.html Anyway, this prob

Re: [rust-dev] Language to replace C

2014-03-04 Thread Daniel Micay
On 04/03/14 03:37 PM, John Mija wrote: > > > El 04/03/14 20:24, Daniel Micay escribió: >> On 04/03/14 02:43 PM, John Mija wrote: >>> So, why don't use a simple language but safe like Go? >> >> Go isn't safe. It has data races. > > True, but Go includes a built-in data race detector: > http://gol

Re: [rust-dev] Language to replace C

2014-03-04 Thread Tony Arcieri
On Tuesday, March 4, 2014, John Mija wrote: > > True, but Go includes a built-in data race detector: > http://golang.org/doc/articles/race_detector.html A data race detector can only detect problems when it observes them. Unfortunately data races are typically finnickey, hard-to-reproduce things

Re: [rust-dev] Language to replace C

2014-03-04 Thread Masklinn
On 2014-03-04, at 21:37 , John Mija wrote: > El 04/03/14 20:24, Daniel Micay escribió: >> On 04/03/14 02:43 PM, John Mija wrote: >>> So, why don't use a simple language but safe like Go? >> >> Go isn't safe. It has data races. > > True, but Go includes a built-in data race detector: > http://gol

Re: [rust-dev] Language to replace C

2014-03-04 Thread Daniel Micay
On 04/03/14 03:55 PM, Tony Arcieri wrote: > On Tuesday, March 4, 2014, John Mija > wrote: > > True, but Go includes a built-in data race detector: > http://golang.org/doc/__articles/race_detector.html > >

Re: [rust-dev] Language to replace C

2014-03-04 Thread John Mija
Then, would be a bad idea to use a sub-set of Go to build algorithms (i.e. decodecs of audio/video) and with an automatic transformer to generate the code to other language? So, the code is written once, but it could be transformed to whatever language --once there is a transformer--. El 04/

Re: [rust-dev] Language to replace C

2014-03-04 Thread Tony Arcieri
On Tue, Mar 4, 2014 at 3:29 PM, John Mija wrote: > Then, would be a bad idea to use a sub-set of Go to build algorithms (i.e. > decodecs of audio/video) and with an automatic transformer to generate the > code to other language? > > So, the code is written once, but it could be transformed to wha

Re: [rust-dev] Language to replace C

2014-03-04 Thread Liigo Zhuang
If I select Rust as my main language, I don't think I have any reason to write new code in Go. Go away! 2014年3月5日 上午3:44于 "John Mija" 写道: > Every time there is a new language, developers have to start to developing > from scratch the same algorithms. > The alternative has been to use C libraries a

Re: [rust-dev] Language to replace C

2014-03-04 Thread Benjamin Striegel
I'm seeing unnecessarily hostile and dismissive comments from several participants here. If you can't be civil, then ignore the thread and move on. On Tue, Mar 4, 2014 at 11:40 PM, Liigo Zhuang wrote: > If I select Rust as my main language, I don't think I have any reason to > write new code in

Re: [rust-dev] Language to replace C

2014-03-05 Thread John Mija
Although you use Rust as main language, there are reasons to use a second language i.e. for scripting; the AAA games usually are built in C++ but it's very common the usage of Lua for scripting El 05/03/14 04:40, Liigo Zhuang escribió: If I select Rust as my main language, I don't think I have

Re: [rust-dev] Language to replace C

2014-03-05 Thread Gaetan
discutions go steril here. Let's cut this thread - Gaetan 2014-03-05 9:59 GMT+01:00 John Mija : > Although you use Rust as main language, there are reasons to use a second > language i.e. for scripting; the AAA games usually are built in C++ but > it's very common the usage of Lua for scri

Re: [rust-dev] Language to replace C

2014-03-05 Thread Kevin Cantu
New languages based on and interoperating with Rust are interesting. A well defined subset of Rust which is still valid Rust can be quite useful. Have you looked at the work Yehuda Katz and others have done with Rust code which doesn't use the Rust runtime? That is *much* more like what you're s

Re: [rust-dev] Language to replace C

2014-03-05 Thread Liigo Zhuang
I do known what I need. You are not me, please not tell me what need to do. 2014年3月5日 下午4:59于 "John Mija" 写道: > Although you use Rust as main language, there are reasons to use a second > language i.e. for scripting; the AAA games usually are built in C++ but > it's very common the usage of Lua fo

Re: [rust-dev] Language to replace C

2014-03-05 Thread John Mija
I was not saying to you what you need, where did you read about that? I'm explaining about the extended usage of two languages, one like main language and the other one like scripting. El 05/03/14 11:17, Liigo Zhuang escribió: I do known what I need. You are not me, please not tell me what ne

Re: [rust-dev] Language to replace C

2014-03-05 Thread John Mija
Thanks! My vision was very limited. You don't need other language else a sub-set of Rust. At the beginning, I was thinking in Go because the standard library already has functions to parsing Go code: http://golang.org/pkg/go/ The usage for a sub-set of Rust could be: + To replace bash scrip

Re: [rust-dev] Language to replace C

2014-03-05 Thread Liigo Zhuang
I don't think let Go away out of my life and project is a bad decision. If someone is a bit critical, please ignore this and move on! 2014年3月5日 下午1:02于 "Benjamin Striegel" 写道: > I'm seeing unnecessarily hostile and dismissive comments from several > participants here. If you can't be civil, then

Re: [rust-dev] Language to replace C

2014-03-05 Thread Liigo Zhuang
If I'm using oracle, I don't need mysql. If I'm using git, I don't need svn. If I'm using rust, I don't need go. But I don't known what others think about this. 2014年3月5日 下午7:21于 "John Mija" 写道: > I was not saying to you what you need, where did you read about that? > > I'm explaining about the ex

Re: [rust-dev] Language to replace C

2014-03-05 Thread Chris Morgan
This thread has become quite toxic. Please, people: remember our community's code of conduct and let us douse the flames. The Rust community has hitherto had a good image of being a friendly community, and this has typica

Re: [rust-dev] Language to replace C

2014-03-05 Thread Richard Gomes
Big projects ( in the "enterprise" space, I mean ) involve a myriad of libraries, tools and legacy systems which need to be integrated sometimes in very strange ways. If I had to interoperate Rust with Java or Python, for example, I would possibly employ /ZeroMQ/ for this purpose. Since there's a