Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
are you sure GoCompiler/GoLang generate ASM code for build executable file from .go? On Wednesday, December 13, 2017 at 4:23:24 PM UTC+3:30, erfang...@gmail.com wrote: > > you are tell then generate a ASM code?! this may be hard And waste of time. > > At the top of the conversation, it was said

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
you are tell then generate a ASM code?! this may be hard And waste of time. At the top of the conversation, it was said that only the C language could write compiler without any tools/another compiler. so why now tell ASM?! On Wednesday, December 13, 2017 at 4:17:05 PM UTC+3:30, Chris Hopkins w

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
if you write a software then can lex and parse a input file and next AST and generate a code. so need another compiler for final compile... so your software will need another tools/compiler. On Wednesday, December 13, 2017 at 4:17:05 PM UTC+3:30, Chris Hopkins wrote: > > > > On Wednesday, 13 Dec

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
mean a compiler like golang , then for use no need any another compiler and tools. only itself. hello.go file : package main import "fmt" func main() { fmt.Println("hello world!") } -- $ go build hello.go On Wednesday, December 13, 2017 at 4:10:18 PM UTC+3:30, erfang...@gmail.com wrot

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
How can write a compiler Using C as test.exe then can use from test.exe compiler any where... so can write a input file like hello world application and generate executable file using test.exe. undrestand? On Wednesday, December 13, 2017 at 4:05:52 PM UTC+3:30, Chris Hopkins wrote: > > I think

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
i am not tell interpreter. i am tell compiler for generate a cross executable file. may be show me a *tutorial*/video or a sample small compiler Using C Without Assembly? On Wednesday, December 13, 2017 at 3:59:16 PM UTC+3:30, Gianguido Sorà wrote: > > The compiler does produce an executable wit

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
Could you first answer this question? They question may also be answered. *how can make a new compiler programming language using c without assembly?(a compiler then can produce executable file) ??* On Wednesday, December 13, 2017 at 3:40:05 PM UTC+3:30, Chris Hopkins wrote: > > Before I answer

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
*how can make a new compiler programming language using c without assembly?(a compiler then can produce executable file) ??* On Wednesday, December 13, 2017 at 3:19:58 PM UTC+3:30, Chris Hopkins wrote: > > You keep asking the same question, I think we have a misunderstanding > here. To grossly s

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
i want research about gocompiler and want recompile main go-compiler in gnu/linux operation system.(ubuntu/arch) not recompile golang. On Wednesday, December 13, 2017 at 3:13:22 PM UTC+3:30, Jérôme Champion wrote: > > I think it would be better if you explain what you want to do. > > As example

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
now i am have question about golang/go-compiler work. On Wednesday, December 13, 2017 at 3:13:22 PM UTC+3:30, Jérôme Champion wrote: > > I think it would be better if you explain what you want to do. > > As example : "I want to compile a go program on a ppc64 architecture with > operating system

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
for compile a test,hello world application (.go file) with golang. alwayse need cgo compiler or c compiler? cgo compiler only generate c file. not generate binary executable file. like https://github.com/xlab/c-for-go On Wednesday, December 13, 2017 at 4:41:24 AM UTC+3:30, Bruno Albuquerque wro

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
?!! how may be? a software , for this then generate a binary file. need Asm or Assembler or another Compiler. if gocompiler not use c-compiler for generate binary file.(for a test hello world golang appliaction) so GoCompiler how generate binary file for any platform?! may be explain me ho

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
i am want test Main Go Compiler. and check and test compilers. not GoLang. On Wednesday, December 13, 2017 at 4:41:02 AM UTC+3:30, Bruno Albuquerque wrote: > > Why do you want to explicitly use an old go version? Why not 1.9.2? > > You can find pre-compiled packages for various platforms here: >

[go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread erfangnulinux
in GO 1.4 , grammer/lexer is write at GO or C or both? On Wednesday, December 13, 2017 at 3:43:00 AM UTC+3:30, Dave Cheney wrote: > > In all the supported versions of Go, that is Go 1.9 and soon Go 1.10, the > grammar is written in Go. You will find the source here > https://github.com/golang/go

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
example input: testpackage main import "fmt" func main() { fmt.Println("hello world") } On Wednesday, December 13, 2017 at 3:23:45 AM UTC+3:30, erfang...@gmail.com wrote: > > im for test , want change > > package token lex , to another text. > > example change package to testpackage. > >

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
im for test , want change package token lex , to another text. example change package to testpackage. --- lexer/grammer is write at C or GO? On Wednesday, December 13, 2017 at 3:18:11 AM UTC+3:30, Dave Cheney wrote: > > Sorry, Go 1.4 is no longer supported, it is only use

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
at go1.4 version. compiler and lexer,parser is write at C? or GO? can check and change grammer at /home/guest/go1.4/src/cmd/cc/cc.y ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
~/go1.4/bin$ ./go version go version go1.4-bootstrap-20170531 linux/amd64 go1.4 installed. On Wednesday, December 13, 2017 at 3:08:37 AM UTC+3:30, erfang...@gmail.com wrote: > > but i want not install use GOLANG. > only want Go Compiler. > not may? > > On Wednesday, December 13, 2017 at 3:02:10

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
but i want not install use GOLANG. only want Go Compiler. not may? On Wednesday, December 13, 2017 at 3:02:10 AM UTC+3:30, Dave Cheney wrote: > > You need to install Go on an intel computer before preparing the bootstrap > compiler for ppc64. Follow the steps above, you will find bootstrap.bash i

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
Wooow. Question : Name of main go compiler is GC? On Wednesday, December 13, 2017 at 2:59:46 AM UTC+3:30, Dave Cheney wrote: > > Do this > > cd $HOME > curl https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz > | tar xz > mv go go1.4 > cd go1.4/src > env CGO_ENABLED=0 ./make.b

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
*tutorial* : *https://golang.org/doc/install/source#go14 is say then run : * $ GOOS=linux GOARCH=ppc64 ./bootstrap.bash - bootstrap.bash filethis file not available at go https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz this file only available at new version of golang. On

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
at https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz source , not available bootstrap.bash file. so bootstrap.bash only available at new version of golang. not at go 1.4. On Wednesday, December 13, 2017 at 2:52:14 AM UTC+3:30, erfang...@gmail.com wrote: > > im want test

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
im want test main go compiler. so should try https://storage.googleapis.com/golang/go1.4-bootstrap-20170531.tar.gz ? and tutorial at https://golang.org/doc/install/source#go14 name of main go compiler is GC? On Wednesday, December 13, 2017 at 2:45:34 AM UTC+3:30, Dave Cheney wrote: > > Hello,

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
go-go1.4.3/src/cmd/gc$ make go tool dist install -v make: go: Command not found ../../Make.dist:13: recipe for target 'install' failed make: *** [install] Error 127 so gc also need go!? : On Wednesday, December 13, 2017 at 2:45:34 AM UTC+3:30, Dave Cheney

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
example , when you want write a hello world application. after this then you are write a `.go` file. you should enter : go build hello.go if not installed c-compiler at now, what happen?! c-compiler need at building golang? or alwayse? also when need use from golang? On Wednesday, December 13, 2

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
so GOLANG will not work, if not install C-Compiler on system. yeah? On Wednesday, December 13, 2017 at 2:16:23 AM UTC+3:30, C Banning wrote: > > Well, GO_BOOTSTRAP lets you use any compiler after go1.4. I usually > build/install Go using the previous Go-built version - thus, I > built/installe

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
so go compiler is made with c. so go compiler how work : -- so in current golang version , golang generate c code and compile with c-compiler? On Wednesday, December 13, 2017 at 1:49:07 AM UTC+3:30, Shawn Milochik wrote: > > On Tue, Dec 12, 2017 at 4:48 PM, > > wrote: > >> so Main

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
how can use from them? i want not use from GOLANG. only use from GO COMPILER. main compiler of Go: go-go1.4.3/src/cmd/gc/go.y (parser) On Wednesday, December 13, 2017 at 1:49:07 AM UTC+3:30, Shawn Milochik wrote: > > On Tue, Dec 12, 2017 at 4:48 PM, > > wrote: > >> so Main compiler is at previ

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
so Main compiler is at previous version and made with C? On Wednesday, December 13, 2017 at 1:09:13 AM UTC+3:30, Tamás Gulácsi wrote: > > Yes. It compiles itself with a previous verson of the compiler first. -- You received this message because you are subscribed to the Google Groups "golang-n

[go-nuts] Re: Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
How may a compiler made with itself!? this need a tools at first to build... On Wednesday, December 13, 2017 at 1:00:22 AM UTC+3:30, Ondrej Fabry wrote: > > Not sure what you mean but if you are asking if go compiler generates C > code which is then compiled by gcc then not really. Since version

[go-nuts] Go Compiler How Work?!

2017-12-12 Thread erfangnulinux
Hello, Go Compiler How Work at Last Version of GoLang?! i mean Go Compiler , Not GoLang. at the last version of golang. go compiler , generate c code and compile using gcc?! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fro

[go-nuts] Re: How select mysql with Bind Param Using go

2017-03-06 Thread erfangnulinux
i see this, but also again not can do and bind param in select (mysql) On Sunday, March 5, 2017 at 2:09:04 PM UTC+3:30, Pierre Curto wrote: > > Have a look at https://golang.org/pkg/database/sql/#DB.Prepare. > > Le dimanche 5 mars 2017 11:07:28 UTC+1, erfang...@gmail.com a écrit : >> >> Hello, >>

[go-nuts] How select mysql with Bind Param Using go

2017-03-05 Thread erfangnulinux
Hello, i want execute example `select * from where id=?` with bind param(s) and get `all rows`. https://github.com/go-sql-driver/mysql/wiki/Examples ``` db, err := sql.Open("mysql", "user:password@/dbname") if err != nil { panic(err.Error()) // Just for example purpose. You shou

[go-nuts] Re: How Build New Golang Console App in a Main Go App?

2017-03-05 Thread erfangnulinux
On Saturday, March 4, 2017 at 6:30:13 PM UTC+3:30, erfang...@gmail.com wrote: > > i want make a autorun generator , mean this make a string code and next > build output file(as golang). > > how can do this? > !!! -- You received this message because you are subscribed to the Google Groups

[go-nuts] How Insert with Bind param from Array to Mysql Using Go?

2017-03-04 Thread erfangnulinux
How Insert with Bind param from Array to Mysql Using Go? ==> stmt.Exec() this func get all value just one time, but i want set value in for(one and one). var values=args[1] var sql_first string="INSERT INTO "+table+" " var sql_end string=" VALUES(" var sql_field string="" v

[go-nuts] Re: How Build New Golang Console App in a Main Go App?

2017-03-04 Thread erfangnulinux
i want make a autorun generator , mean this make a string code and next build output file(as golang). how can do this? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an ema

[go-nuts] How Build New Golang Console App in a Main Go App?

2017-03-03 Thread erfangnulinux
Hello,Go Team. How Build New Golang Console App in a Main Go App? mean on a system without go compilers with main app. example : > `$go build main.go` //this is main app (i dont know how make this!) `./main file.go` and after this , build file.go and save as `file`. may compiler without go com

[go-nuts] How can print MAP data without randomized?

2017-02-09 Thread erfangnulinux
hi How can print MAP data without randomized? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit ht