Re: [go-nuts] Re: [ANN] A BASIC compiler

2019-10-26 Thread Anca Emanuel
Ah so it is an transpiller: 
https://en.wikipedia.org/wiki/Source-to-source_compiler

On Saturday, October 26, 2019 at 5:03:40 PM UTC+3, Robert Engels wrote:
>
> Yes. I generates C code from a basic program and you compile the C. 
>
> On Oct 26, 2019, at 8:55 AM, Anca Emanuel  > wrote:
>
> 
> Please explain how it works.
> Do you get executables from basic programs ?
>
>
> On Saturday, October 26, 2019 at 4:40:43 PM UTC+3, JuciÊ Andrade wrote:
>>
>> Hi, Anca.
>>
>> The compiler proper doesn't use C code, generated code does, it has 
>> references to some support functions.
>> Those support functions are declared in basiclib.h and defined in 
>> basiclib.c .
>>
>> On Saturday, October 26, 2019 at 10:32:24 AM UTC-3, Anca Emanuel wrote:
>>>
>>> Why do you need C in the source code ?
>>>
>> -- 
> 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 golan...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/cba97461-cf16-4273-8336-cc26e236aa0a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/cba97461-cf16-4273-8336-cc26e236aa0a%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4febd46d-ac30-40ea-893f-dbd695b8d0a2%40googlegroups.com.


[go-nuts] Re: [ANN] A BASIC compiler

2019-10-26 Thread Anca Emanuel
Why do you need C in the source code ?

On Saturday, October 26, 2019 at 3:16:40 PM UTC+3, JuciÊ Andrade wrote:
>
> https://github.com/jucie/basic
>
> A compiler for BASIC programming language.
>
>
> This tool understands what is in David H. Ahl's own words "the gold 
> standard of microcomputer BASICs: MITS Altair 8K BASIC, Rev. 4.0 (ix)." It 
> has been tested against every program from Ahl's bestseller "BASIC Computer 
> Games".
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c876c307-3705-4caa-8683-b2caf8fd4411%40googlegroups.com.


[go-nuts] Re: About the Google logo on the new Go website

2019-07-16 Thread Anca Emanuel
@all, what do you think of Oracle ?
That is not an company, that is an monster.

On Monday, July 15, 2019 at 6:40:19 PM UTC+3, Michal Strba wrote:
>
> As you all know, the new, redesigned Go website has a Google logo in the 
> bottom right corner.
> Someone opened an issue about this, worrying that with the logo, nobody 
> will see Go as a community project: 
> https://github.com/golang/go/issues/33021
>
> The issue was promptly closed and locked by a Go team member, which I must 
> admit, is kind of an unfair move.
> If you read this thread on r/programming, it seems like the worries are 
> quite justified: 
> https://www.reddit.com/r/programming/comments/ccidly/golang_issue_ticket_remove_the_google_logo/
>
> I personally am fine with the logo.
>
> What do you think? For example, Rust has no Mozilla logo on its page 
> despite being largely funded by it.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/708a60a4-0ad2-41f6-a997-8fa6c5f83e53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Go for Data Science

2019-07-16 Thread Anca Emanuel
Use the right tool for the job. https://julialang.org/ 
 
or ask on gonum-dev

On Tuesday, July 16, 2019 at 8:18:21 PM UTC+3, Leo R wrote:
>
> Hi Gophers!
> I was thinking to start a Go project in the area of Data Science that 
> would allow for convenient and easy concurrent data processing but at the 
> end decided against it mainly because of two reasons:
>
> (1) Almost all data science projects start with a data exploratory 
> analysis of some sort. Unfortunately, Go does not have REPL. Go Playground 
> is not a substitute, for it does not preserve state. On every iteration 
> Playground recompiles and relaunches the entire program, reads all the data 
> anew, performs all the calculations. Not good for an interactive "rapid 
> fire".
> REPL in a static AOT compiled language is hard, yet Swift somehow managed 
> to implement it.
>
> (2) Even if somebody implements incremental Go compiler and provides a 
> proper REPL, people will be longing for data analysis "at your fingertips", 
> missing rich pandas-like API, overloaded operators (python style) and 
> dynamical scoping (like in R). Minimalistic design of Go is unlikely to 
> accommodate all of these "convenience" constructs and for a good reason.
>
> I think Go has a place in highly performant concurrent data pipelines and 
> transformations but I am less optimistic it would ever play in the field 
> dominated currently by Python and R and possibly by Julia in the future. I 
> am curious of what am I missing in this line of thinking?
>
> Thanks,
> --Leo
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e6ca5e0f-f3e1-4854-b782-90cbdb952428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: About the Google logo on the new Go website

2019-07-16 Thread Anca Emanuel
Mozilla had many projects, including languages for the web.
Did they advertise about ? No. They simply take over the world.
Microsoft battle ? Nah, now they are behind.
Google is relatively new in the market. They take an open source browser 
engine, work with Apple and others to make some improvements.
Apple call it Safari, Google call it Chromium.
Some engineers at Google observe that their projects take unusual compile 
time. And that start the discussion of why ?
Or what can you do ?
When you worked on early versions of C and implemented already another in 
other operating system like plan 9, you sure have some ideas to improve 
things.
So they think they need an improved C.
This is how the story of Go begins. It is started by the brilliant Google 
employees.l
Some years later, is open source version 1.0 with compatible guarantee for 
any later version.
So, what do you think about an tiny google logo on the web page presenting 
the language ?
For me, that is normal. They started it.


On Monday, July 15, 2019 at 6:40:19 PM UTC+3, Michal Strba wrote:
>
> As you all know, the new, redesigned Go website has a Google logo in the 
> bottom right corner.
>
> Someone opened an issue about this, worrying that with the logo, nobody 
> will see Go as a community project: 
> https://github.com/golang/go/issues/33021
>
> The issue was promptly closed and locked by a Go team member, which I must 
> admit, is kind of an unfair move.
>
> If you read this thread on r/programming, it seems like the worries are 
> quite justified: 
> https://www.reddit.com/r/programming/comments/ccidly/golang_issue_ticket_remove_the_google_logo/
>
> I personally am fine with the logo.
>
> What do you think? For example, Rust has no Mozilla logo on its page 
> despite being largely funded by it.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/5810b52f-391d-4d05-8995-abd48d57ab8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: About the Google logo on the new Go website

2019-07-16 Thread Anca Emanuel
Mozilla had many projects, including languages for the web.
Did they advertise about ? No. They simply take over the world.
Microsoft battle ? Nah, now they are behind.
Google is relatively new in the market. They take an open source browser 
engine, work with Apple and others to make some improvements.
Apple call it Safari, Google call it Chromium.
Some engineers at Google observe that their projects take unusual compile 
time. And that start the discussion of why ?
Or what can you do ?
When you worked on early versions of C and implemented already another in 
other operating system like plan 9, you sure have some ideas to improve 
things.
So they thing they need an improved C.
This is how the story of Go begins.


On Monday, July 15, 2019 at 6:40:19 PM UTC+3, Michal Strba wrote:
>
> As you all know, the new, redesigned Go website has a Google logo in the 
> bottom right corner.
>
> Someone opened an issue about this, worrying that with the logo, nobody 
> will see Go as a community project: 
> https://github.com/golang/go/issues/33021
>
> The issue was promptly closed and locked by a Go team member, which I must 
> admit, is kind of an unfair move.
>
> If you read this thread on r/programming, it seems like the worries are 
> quite justified: 
> https://www.reddit.com/r/programming/comments/ccidly/golang_issue_ticket_remove_the_google_logo/
>
> I personally am fine with the logo.
>
> What do you think? For example, Rust has no Mozilla logo on its page 
> despite being largely funded by it.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/5a41722e-baab-4c32-9f51-c1a2b76af35e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Some problem I heard in my class: there are n chess players and they play with all others 1 game and no more than 1 game per day.

2019-01-28 Thread Anca Emanuel
Here is some play version to test it: https://play.golang.org/p/q-Ikcv3kTW9
Notice the line:
// Change the number of players here !

It works ok for small number of players. (no more than 200)

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Some problem I heard in my class: there are n chess players and they play with all others 1 game and no more than 1 game per day.

2019-01-28 Thread Anca Emanuel
On Sunday, January 27, 2019 at 3:42:35 AM UTC+2, Lutz Horn wrote:
>
> Hi Anca, 
>
> Am 26.01.19 um 09:27 schrieb Anca Emanuel: 
> > How do you make an planing for that event ? 
> > 
> > Here is my 
> > implementation: 
> https://github.com/ancaemanuel/comb/blob/master/chess_tournament.go 
> > 
> > This was not an easy problem. After some years of thinking an pencil 
> work I 
> > have an optimal solution. 
>
> Some remarks: 
>
> * Your code needs some comments that explain why it does what it does. 
> * The names you choose (n, d, i, j, k) don't tell us anything about 
> their meaning. Use intention revealing names. 
> * Did you try to write some test 
> (https://golang.org/doc/code.html#Testing) for your code? How do you 
> know it is correct without them? 
>
> Lutz 
>
> Thank you for your feedback. Yes, the code is not very explicit.
I am not very good in writing test in golang, but visually, there are 
combinations of n people taken 2 to verify, and that is not very hard.
I was thinking about that and I 
have https://github.com/ancaemanuel/comb/blob/master/comb.go to generate 
them ( an classical algorithm to generate combinations of n taken k in 
lexicographic order ) but I got lazy...

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Some problem I heard in my class: there are n chess players and they play with all others 1 game and no more than 1 game per day.

2019-01-26 Thread Anca Emanuel
How do you make an planing for that event ?

Here is my 
implementation: 
https://github.com/ancaemanuel/comb/blob/master/chess_tournament.go

This was not an easy problem. After some years of thinking an pencil work I 
have an optimal solution.

-- 
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 https://groups.google.com/d/optout.