[go-nuts] [ANN] pyg: python 3.7.1 bindings for Go

2018-12-15 Thread Jason E. Aten
`pyg` is a library for embedding python 3.7.1 in Go. Very little of `pyg` is mine. I consolidated a bunch of github repositories providing python 2/3 bindings, previously named gopy and originated by user qur and enhanced by users halturin and limetext. Unfornately there is another gopy repo a

[go-nuts] Re: bin packing or knapsack

2018-12-15 Thread Jason E. Aten
search for branch-and-bound; e.g. https://www.geeksforgeeks.org/0-1-knapsack-using-branch-and-bound/ On Saturday, December 15, 2018 at 5:01:51 PM UTC-6, Vasiliy Tolstov wrote: > > Hi! i have task that have some resource constrains for example: > Cpu Count > Memory size > Disk Size > > And ha

Re: [go-nuts] Re: Go assembly interface calls

2018-12-15 Thread Robert Engels
Agreed, except the generated code uses SP and not FP so when using additional storage it is a bit more difficult to work with IMO > On Dec 15, 2018, at 5:17 PM, Nathan Fisher wrote: > > One trick I’ve used when writing algorithms that use SSE is write it in Go > first, run go build to output

Re: [go-nuts] Re: Go assembly interface calls

2018-12-15 Thread Nathan Fisher
One trick I’ve used when writing algorithms that use SSE is write it in Go first, run go build to output the assembler for the function, and then tweak the output manually. On Sat, Dec 15, 2018 at 09:36, Jason E. Aten wrote: > reflect.Method(i) and reflect.MethodByName("myFunc") have got to be fu

[go-nuts] bin packing or knapsack

2018-12-15 Thread Vasiliy Tolstov
Hi! i have task that have some resource constrains for example: Cpu Count Memory size Disk Size And have some servers, so i need optimal put this tasks on this servers (tightly) What is optimal algo for this case? As i see i need 3 dimensions, but i can't rotate items. Where i can read more info

[go-nuts] Re: [ANN] Koazee a library inspired by functional programming and lazy evaluation that takes the hassle out of working with arrays

2018-12-15 Thread Iván Corrales Solera
Just a quick update, about koazee, release 0.0.3 (Gibbon) is already available and it Includes 7 new operations. https://medium.com/wesovilabs/koazee-gibbon-4476418df747 https://github.com/wesovilabs/koazee On Sunday, November 11, 2018 at 8:27:16 PM UTC+1, Iván Corrales Solera wrote: > > Hey

[go-nuts] symbol lookup error: /root/llvm-install/lib64/libgo.so.8svn: undefined symbol: __get_cpuid_count after "make install"

2018-12-15 Thread benjima
Hi! I'm trying to use the current gollvm build, but it seems there is a symbol error. Probably that symbol is absent in the libgo release? Anyone had a similar problem or an idea how I can fix that? Best, Benedikt -- You received this message because you are subscribed to the Google Groups "g

Re: [go-nuts] Re: Go assembly interface calls

2018-12-15 Thread Jason E. Aten
reflect.Method(i) and reflect.MethodByName("myFunc") have got to be fully dynamic, perhaps they hold a clue. On Saturday, December 15, 2018 at 8:20:20 AM UTC-6, Robert Engels wrote: > > That’s a possibility, but I would think there must be some assembly syntax > to obtain the offset of a method

Re: [go-nuts] Re: Go assembly interface calls

2018-12-15 Thread Robert Engels
That’s a possibility, but I would think there must be some assembly syntax to obtain the offset of a method of an interface function table. When you look at the assembly generated the offsets are constants... otherwise you need to perform multiple lookups to determine it - ruining the performa

[go-nuts] Re: Go assembly interface calls

2018-12-15 Thread Jason E. Aten
On Saturday, December 15, 2018 at 1:29:14 AM UTC-6, robert engels wrote: > > Are there any examples of a hand-written assembly function that accepts an > interface and then makes calls on the interface methods? > > In reviewing the documentation, it seems impossible, as the PCDATA, and > FUNCDAT

[go-nuts] Re: time_now may cause linux kernel run out of CPU

2018-12-15 Thread Jason E. Aten
This seems like a fun way to exercise the Go runtime facilities and to benchmark your hardware capacity, but I don't see any evidence of a bug. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving ema

[go-nuts] Re: tools for testing transport over flakey networks

2018-12-15 Thread Jason E. Aten
On Tuesday, December 11, 2018 at 6:05:46 PM UTC-6, kortschak wrote: > > Is anyone aware of testing infrastructure for simulating flakey > networks without recourse to iptables on linux, i.e. a Go package/type > that can be used to to this? > > thanks > Dan > In addition to the proxy idea (whi

[go-nuts] regexp: is there a way to match single byte ?

2018-12-15 Thread Tamás Gulácsi
For such a simple match, I'd use two bytes.Index with an if in a for cycle. -- 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.c

[go-nuts] regexp: is there a way to match single byte ?

2018-12-15 Thread djadala
Hi for example i want to match jpeg header: header :=`\xFF\xD8\xFF\xE0..\x4A\x46\x49\x46\x00` re := regexp.MustCompile(header) where in position of '.' i want to match any byte, not any (unicode) char. is this possible ? thanks in advance. Djadala -- You received this message because you are