[go-nuts] Re: Meet Golid : A Solid.js inspired framework written 100% in Go.

2025-06-11 Thread Serge Hulne
What about this, instead: https://github.com/serge-hulne/SwiftlyGo On Monday, 5 May 2025 at 00:59:16 UTC+2 Justin Israel wrote: > I read your article and then looked at the code and was surprised to find > that there wasn't much code there at all, vs what the article claims as a

Re: [go-nuts] Re: Meet Golid : A Solid.js inspired framework written 100% in Go.

2025-05-05 Thread Serge Hulne
s there > more work meant to be added to match the "framework" description from the > article? Or is it really meant to be as minimal as the current state, where > it had a few functions that wrap around gomponents? > > On Sunday, May 4, 2025 at 7:55:11 PM UTC+12 Ser

[go-nuts] Meet Golid : A Solid.js inspired framework written 100% in Go.

2025-05-04 Thread Serge Hulne
The repo: https://github.com/serge-hulne/Golid/tree/main The introductory article: https://medium.com/p/e90bb3350bdd Serge. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fro

[go-nuts] Why does Go (so far) not have support for generators/ iterators for custom types ?

2023-08-06 Thread Serge Hulne
Why does Go (so far) not have support for generators/ iterators for custom types ? I wrote this workaround: https://github.com/serge-hulne/go_iter But I was wondering what lead to the idea of leaving iterators out in the early days of the design of Go. What simplification of the language was

Re: [go-nuts] Game Of Life in Go : Any comments welcome (I'm not sure I have implemented it correctly)

2022-04-09 Thread Serge Hulne
y_jan_mercl/ > > ;-) > > On Sat, Apr 9, 2022, 17:39 Serge Hulne wrote: > >> I have just published on Github one possible implementation of Conway's >> Game of Life in Go: >> >> https://github.com/serge-hulne/Game-of-life-go/ >> >> It seems to work, ho

[go-nuts] Game Of Life in Go : Any comments welcome (I'm not sure I have implemented it correctly)

2022-04-09 Thread Serge Hulne
I have just published on Github one possible implementation of Conway's Game of Life in Go: https://github.com/serge-hulne/Game-of-life-go/ It seems to work, however it might be buggy. Feel free to file a bug report under "Issues", if you find an error in the impement

[go-nuts] I have just published my iterator library iter_go : migrated for generics

2022-03-23 Thread Serge Hulne
https://github.com/serge-hulne/go_iter It allows iterating over streams of arbitrary length (data channels). -- 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

Re: [go-nuts] Re: I just published : Iterator lib for Go: Library providing Map(), Filter(), Reduce() for Go

2022-03-14 Thread Serge Hulne
Cool! On Mon 14 Mar 2022 at 17:10, Rob Muhlestein wrote: > Here's one with 1.18 generics: https://github.com/rwxrob/fn (for fun). > > On Wednesday, August 25, 2021 at 10:17:59 AM UTC-4 Serge Hulne wrote: > >> https://github.com/serge-hulne/go_iter >> >> go

[go-nuts] Re: Trying to code an observer pattern or a publish/submit pattern for a cellular automaton

2021-11-14 Thread Serge Hulne
ovember 2021 at 18:21:00 UTC+1 seank...@gmail.com wrote: > that's exponential growth, every value results in 2 output values > input "1" x1, get "2" x2, "3" x4, "4" x8, "5" x16, ... > also your use of goroutines to send mean you'll s

[go-nuts] Re: Trying to code an observer pattern or a publish/submit pattern for a cellular automaton

2021-11-14 Thread Serge Hulne
gmail.com wrote: > that's exponential growth, every value results in 2 output values > input "1" x1, get "2" x2, "3" x4, "4" x8, "5" x16, ... > also your use of goroutines to send mean you'll still run out of memory at > some

[go-nuts] Trying to code an observer pattern or a publish/submit pattern for a cellular automaton

2021-11-14 Thread Serge Hulne
Hi, I am trying to code an observer pattern or a publish/submit pattern for a sort of cellular automaton. The classical observer pattern does not to the trick because if a cell A subscribes to changes in a cell B and vice-versa, the application will run out of stack owing to the recursive appr

[go-nuts] I just published : Iterator lib for Go: Library providing Map(), Filter(), Reduce() for Go

2021-08-25 Thread Serge Hulne
https://github.com/serge-hulne/go_iter go get github.com/serge-hulne/go_iter Currently working on the doc and examples. -- 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 i

[go-nuts] Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Serge Hulne
Is there a preview Golang version I can download to try out generics ? I have written a library, which I believe would benefit from generics. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving ema

Re: [go-nuts] Is there a Go native approch to MPI (Message passing interface) ?

2020-09-14 Thread Serge Hulne
Thank you for the info. On Monday, 14 September 2020 at 13:07:25 UTC+2 rcore...@gmail.com wrote: > I just wrote a wrapper around open mpi in Go: https://github.com/emer/empi > > Also, here's a set of random go bindings I found: > • https://github.com/yoo/go-mpi > • https://github.com/marcusthierf

[go-nuts] Re: Is there a gui library for Go, like Gtk+ or similar, which can be used to build statically linked executables ?

2020-09-11 Thread Serge Hulne
I had a look again at "Fyne". It seems to have improved a lot lately, in particular the default size for fonts etc seems much better! Thanks again for the suggestion. On Sunday, 2 August 2020 at 23:43:56 UTC+2 ma...@eliasnaur.com wrote: > On Sunday, 2 August 2020 at 23:24:20 UTC+2 jake...@gmail.

[go-nuts] Re: Is there a gui library for Go, like Gtk+ or similar, which can be used to build statically linked executables ?

2020-08-02 Thread Serge Hulne
rg/rj/goey/src/master/ > https://gioui.org/ > https://github.com/andlabs/ui > https://github.com/goki/gi > https://github.com/lxn/walk > > On Sunday, August 2, 2020 at 11:53:32 AM UTC-4 Serge Hulne wrote: > >> Is there a gui library for Go, like Gtk+ or similar, which will produce

[go-nuts] Re: Is there a gui library for Go, like Gtk+ or similar, which can be used to build statically linked executables ?

2020-08-02 Thread Serge Hulne
Thanks! On Sunday, 2 August 2020 23:09:45 UTC+2, smart dev wrote: > > Yes, you can use go-astilectron. (electron + go) > https://github.com/asticode/go-astilectron > > On Sunday, August 2, 2020 at 9:53:32 AM UTC-6, Serge Hulne wrote: >> >> Is there a gui library f

[go-nuts] Is there a gui library for Go, like Gtk+ or similar, which can be used to build statically linked executables ?

2020-08-02 Thread Serge Hulne
Is there a gui library for Go, like Gtk+ or similar, which will produce a statically linked executable ? The aim is to create apps which do not require the user to install GTK or any extra libraries in order to use the app. -- You received this message because you are subscribed to the Google

Re: [go-nuts] In the smippet herunder, are strings copied or passed by address (they seem copied, but maybe only the addresses are copied) ?

2020-08-01 Thread Serge Hulne
Thank you! On Saturday, 1 August 2020 19:48:50 UTC+2, Brian Candler wrote: > > In Go, everything is passed by value: that is, assignments and function > calls make a copy of the value. > > However, some types are effectively structs which contain pointers > embedded within them. Strings, slic

[go-nuts] In the smippet herunder, are strings copied or passed by address (they seem copied, but maybe only the addresses are copied) ?

2020-08-01 Thread Serge Hulne
``` package main import ( "fmt" ) func f(s *string) { a := "Hello" b := "Hello" c := "bye" d := a fmt.Printf("pa: %p\n", &a) fmt.Printf("pb: %b\n", &b) fmt.Printf("pc: %v\n", &c) fmt.Printf("pd: %v\n", &d) fmt.Printf("p(f(u)): %p\n", s) } func main() {

[go-nuts] looking for a snippet to get started with Tcell or Termbox-go

2019-11-25 Thread serge . hulne . blues
Hi, I am looking for the easiest way to emulate ncurses using Go. More precisely, I am looking for a snippet of code (an example basically) on how to do the following: "put a given character directly on a location (x,y) on a terminal" using either Tcell or Termbox-go or in pseudo-code: *pu

Re: [go-nuts] Go gouroutines vs Rust threads

2019-11-13 Thread Serge Hulne
Thank you! On Wed 13 Nov 2019 at 21:08, Russel Winder wrote: > On Wed, 2019-11-13 at 06:02 -0800, Serge Hulne wrote: > > Am I therefore correct in assuming that, if the problem I am trying to > model > > is not IO bound or CPU bound, but deals essentially with modeling a l

Re: [go-nuts] Go gouroutines vs Rust threads

2019-11-13 Thread Serge Hulne
Thank you very much for your answers, they are very much appreciated. Serge. -- 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

Re: [go-nuts] Go gouroutines vs Rust threads

2019-11-13 Thread Serge Hulne
Am I therefore correct in assuming that, if the problem I am trying to model is not IO bound or CPU bound, but deals essentially with modeling a large number of independent cells (a sort of massively parallel « Game of life »), where each cells lives in its own process, it makes more sense to mo

[go-nuts] Go gouroutines vs Rust threads

2019-11-13 Thread Serge Hulne
Does anybody know if Rust threads are lightweight processes like Go goroutines or if they rely on system threads (i.e. more like the Python approach) ? Thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] What is the best tool today to port (bind) a library of C functions to Go (SWIG)?

2017-04-11 Thread Serge Hulne
Hi, I used SWIG in the past to be able to use C functions from Python code and to largely automate the process of making said lib of C functions accessible to Python. I would like to do the same with Go. Is SWIG still the best tool for the job or is there maybe another new too more appropria