Re: [go-nuts] The feature I want most, weak *

2017-02-11 Thread Wojciech S. Czarnecki
e e.g. https://github.com/waterlink/go Hope this helps, TC -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- 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 t

Re: [go-nuts] go get creating strange git messages in bash. Any ideas what causes this ?

2016-09-16 Thread Wojciech S. Czarnecki
> what it does would be great to understand. You will - just read a decent book bedtime. > x-MacBook-Pro:pkg apple$ rm -rf sftp/ This is NOT the offending repo, github.com/kr/fs is. > # cd /Users/apple/workspace/go/src/github.com/kr/fs Do 'git checkout master' here then 'git pull --ff-only'

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Wojciech S. Czarnecki
r sw = Stopwatch.StartNew(); > var tasks = new Task[taskCount]; > sw.Stop(); In an era of multicore and aggresive optimizers microbenchmarking is moot. -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golan

Re: [go-nuts] Re: .net core vs go

2016-10-09 Thread Wojciech S. Czarnecki
s.110).aspx] If you still want to compare PLs, do reimplement some (heavily concurrent) real solution avaliable in golang ecosystem in C# (you do know intimately) Then you might compare both in production. -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because y

Re: [go-nuts] Support of diffie-hellman-group-exchange-sha1

2016-09-18 Thread Wojciech S. Czarnecki
work gear? Or to let your golang software get a govt mandated certification/clearence? Or ... > > I am trying to use the exchange algorithm called > > "diffie-hellman-group-exchange-sha1" It looks like Go does not support it -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE

Re: [go-nuts] Re: go get: You are not currently on a branch

2016-10-12 Thread Wojciech S. Czarnecki
irectory and do: 'git checkout master' there. After that you may do 'go get -u' again. Rinse and repeat. ] -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] Re: Using Go in a locked down SOC2 environment (dependency management hell)

2017-01-06 Thread Wojciech S. Czarnecki
-2015/vendor-folder/ [3] as far as go compiler allows for https://github.com/golang/go/issues/16860 Hpoe this helps, -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Why were tabs chosen for indentation?

2017-03-19 Thread Wojciech S. Czarnecki
ke code familiar with indentation one is accustomed to. > I always felt the reason for using tabs was to enable support for non- > monospaced fonts and multi-width characters. A tab stop in the > traditional sense is a linear position, not a number of characters. -- Wojciech S. Czarnec

Re: [go-nuts] Japronto vs Go net/http

2017-03-08 Thread Wojciech S. Czarnecki
an'. > I noticed that the response header is larger than japronto header. > Response header net/http additionally includes the current date. As said: standards. -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because you are subscribed to the Google Groups &qu

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-30 Thread Wojciech S. Czarnecki
On Sat, 29 Jul 2017 16:56:05 -0700 (PDT) ecstatic.co...@gmail.com wrote: > Anyway, thanks for the fun. Where is the popcorn ? LOL Q.E.D. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups &quo

Re: [go-nuts] Re: GO Vs D

2017-08-02 Thread Wojciech S. Czarnecki
stand. Even if just for a while ;). -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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+unsubs

Re: [go-nuts] Deleted post?

2017-07-17 Thread Wojciech S. Czarnecki
d possibly start browser afresh - missing post should reappear". Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE (I'm not a mod ;) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from th

Re: [go-nuts] Web UI library in pure Go?

2017-07-15 Thread Wojciech S. Czarnecki
On Sat, 15 Jul 2017 09:30:39 -0700 (PDT) Leff Ivanov wrote: > Is there something like Vaadin, GWT, ZK in Golang world? I mean something > to do web UIs in pure Go without the need to write JavaScript and HTML. > https://github.com/icza/gowut GPL3

Re: [go-nuts] go get awkwardness with packages outside of GOPATH

2017-07-20 Thread Wojciech S. Czarnecki
ce. Note, that go tooling does *not* allow symlinks! I'd suggest keeping to go tool expectations though. Third party pm-s and home baked scripts will not survive enough long to be on pair with evolving genuine tool. > > Thanks, > Florian Hope this helps, -- Wojciech S. Czarnecki << ^oo

Re: [go-nuts] go get awkwardness with packages outside of GOPATH

2017-07-19 Thread Wojciech S. Czarnecki
github.com/bumptech/glide Hope this helps. > Best regards, > Florian > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-22 Thread Wojciech S. Czarnecki
format to compiler taste on savefile. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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+

Re: [go-nuts] Go 2 suggestion - Types like "int?"

2017-08-20 Thread Wojciech S. Czarnecki
here > will be times that json may be invalid. I.e., the "int" type has 'null' as > input. Ah, so Go core team should puff, bow then break Go type system asap. Just because some sloppy coder in outer world may produce invalid data and present coder is too lazy to write proper valid

Re: [go-nuts] Reading stdlib for education about go?

2017-05-12 Thread Wojciech S. Czarnecki
g of go just from stdlib reading you IMO err. While usually clear and concise stdlib code tends to be dense and sometimes 'hacky'. I personally would start with a big complete product, or popular 3rd party library. Eg. Hugo, Caddy, and gorilla if you're into web backend. Hope this helps, --

Re: [go-nuts] issues about struct align

2017-05-19 Thread Wojciech S. Czarnecki
64b one (64/8). > Could anyone tell me how I can get the same result with go playground? You can not. Go playground uses 64b platform. -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" g

Re: [go-nuts] Re: What will happen if the go and cgo's malloc return overlapped ?

2017-09-23 Thread Wojciech S. Czarnecki
On Fri, 22 Sep 2017 16:58:53 -0700 (PDT) Remus Clearwater <remus.clearwa...@gmail.com> wrote: > So, if the reservation scheme breaks down Then OS will not even boot. https://www.google.com/search?q=OS+memory+management+lecture -- Wojciech S. Czarnecki << ^oo^ >> OHIR-R

[go-nuts] Are you tired typing if err != nil {} ?

2017-09-14 Thread Wojciech S. Czarnecki
on" line is in your .vimrc. (default on most linux distros.) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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,

Re: [go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-11 Thread Wojciech S. Czarnecki
should install Linux version of > Go, not Windows version of Go. OP got this hint from the Windows (> sudo apt-get install gccgo). This is a new scenario for beginners and Go docs are not aware of it. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this m

Re: [go-nuts] Re: error handling needs syntactical sugar

2017-09-08 Thread Wojciech S. Czarnecki
err = getData(i) case 3: err = getData(i) default: break watch } } if err != nil { // handle common error } All above patterns have single err handling place yet give back information where err was set -- something "watch&q

Re: [go-nuts] Re: error handling needs syntactical sugar

2017-09-07 Thread Wojciech S. Czarnecki
es as well, it is easy to read > and understand, and it saves the programmer from line duplication. Above at least gives to the reader visual breaks (with 'case' lines ;) > Martin > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are s

Re: [go-nuts] Re: Generics and readability

2017-08-28 Thread Wojciech S. Czarnecki
py to dismiss horrors of hours of digging in huge pile of sources just to grasp how clever and experienced my predecessor was. With go almost everything written by others is clear and in sight. What is not right in sight is a single incantation of go doc away. -- Wojciech S. Czarnecki <<

Re: [go-nuts] Reading bytes into uint32

2017-08-23 Thread Wojciech S. Czarnecki
simply compile endianess variants according to GOARCH. https://godoc.org/go/build#hdr-Build_Constraints -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

Re: [go-nuts] Re: "for ... range" over array of structs copies values

2017-09-01 Thread Wojciech S. Czarnecki
et/2017/05/language-mechanics-on-escape-analysis.html] [Or look at an old presentation of Dave Cheney: https://dave.cheney.net/2014/06/07/five-things-that-make-go-fast] Hope this helps :) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are

Re: [go-nuts] english language help

2017-09-01 Thread Wojciech S. Czarnecki
өгс богино асуултыг бичсэн: "Би өөрийн хэлээр ярьдаг хүмүүсийг хайж байна". Тэр үүнийг өөрийнхөө хэлээр асууж болох байсан. Энэ бол зүгээр юм. Гэхдээ энэ нь англиар ярьдаг газар юм. Энд ядуу англи хэлээр ярих нь зүгээр л зөв. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE

Re: [go-nuts] error handling needs syntactical sugar

2017-09-05 Thread Wojciech S. Czarnecki
ith 10 or more sql statements, when it > doesn't really matter which one fails why? If I have a thousand of similar checks where I do not care about error details I use something like that: https://play.golang.org/p/ig-KOi92Ku Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >&

Re: [go-nuts] error handling needs syntactical sugar

2017-09-05 Thread Wojciech S. Czarnecki
the messages > here: https://gist.github.com/cpmech/d2e36dcbe277cd72605f3732d79c798b -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop re

Re: [go-nuts] error handling needs syntactical sugar

2017-09-05 Thread Wojciech S. Czarnecki
On Tue, 5 Sep 2017 00:11:02 -0700 (PDT) martin.r...@programmfabrik.de wrote: Ooops, bad paste to playground ['fail' logic leaked into https://play.golang.org/p/ig-KOi92Ku] Fixed is at: https://play.golang.org/p/dHE2wlwgIL -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE --

Re: [go-nuts] How to find optimal value for GOGC?

2017-11-17 Thread Wojciech S. Czarnecki
s per > report to the number of cores? Yes it is possible. Please read https://blog.cloudflare.com/go-dont-collect-my-garbage/ for 'howto' tips. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Goog

Re: [go-nuts] [ANN] GoKi Trees and GoGi GUI

2018-05-04 Thread Wojciech S. Czarnecki
r "why I personally get to go from X/y/C++; what I do like and what I do not" posts. Awaiting your goki brainchild to mature and flourish :) > - Randy > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed t

Re: [go-nuts] Go license and fitness for purpose

2018-05-14 Thread Wojciech S. Czarnecki
yer of course :). [1] https://www.supremecourt.uk/cases/uksc-2015-0115.html -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emai

Re: [go-nuts] golang maven plug-in 2.2.0 has been published in maven central

2018-05-15 Thread Wojciech S. Czarnecki
a's 'hello corporate bus' takes to compile and run. Thank you for your work. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Re: go 1 on Ubuntu 18.04

2018-05-08 Thread Wojciech S. Czarnecki
o need to set that Someone who **knows** she will need to set GOROOT likely is fully aware of the consequences. For the beginner the "it will cause confusing errors for you" is not a mere warning but is a precise description of reality. @OP: Read 'never' as 'you MAY NOT set GOROOT until

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Wojciech S. Czarnecki
ven by Interface signatures. > Thank you in advance > Attila -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

Re: [go-nuts] Go could really use a while statement

2018-05-11 Thread Wojciech S. Czarnecki
On Fri, 11 May 2018 13:58:31 +0200 "Wojciech S. Czarnecki" <o...@fairbe.org> wrote: Errata: of course body is still over condition check in for { body; if !(condition) {break} } construct. https://play.golang.org/p/yHFPIYIpcfp -- You received this message because yo

Re: [go-nuts] Go could really use a while statement

2018-05-11 Thread Wojciech S. Czarnecki
Though last example is not in Go's "readability first" spirit. https://play.golang.org/p/8AKokpQWxkr > Hugh Fisher > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts&quo

Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-27 Thread Wojciech S. Czarnecki
ed javascript what in turn allows for communication between your ui markup and your go code. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

Re: [go-nuts] Re: I am confused.

2018-05-28 Thread Wojciech S. Czarnecki
e If you are brave enough you may also learn vim editor: https://ftp.nluug.nl/pub/vim/pc/gvim81.exe I respect you, your sincerity and your will to learn young man. Keep on! Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE P.S. I urge someone with Windows envi

Re: [go-nuts] Re: I am confused.

2018-05-28 Thread Wojciech S. Czarnecki
cluding university / university of technology ones... -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

Re: [go-nuts] Is it possible to launch a Meltdown or Spectre attack with Go code?

2018-01-05 Thread Wojciech S. Czarnecki
it is possible IMO to write an exploit using Go tools. Not relevant though. > Eric. > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

Re: [go-nuts] Resources to learn Go as a first programming language?

2018-02-14 Thread Wojciech S. Czarnecki
are meant as introductory ones. First one has many exercises for the freshmen. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] Go += Package Versioning

2018-02-20 Thread Wojciech S. Czarnecki
inaries may just list versions and compare sp levels with ones at the source repo. If there is higher spN, we will know something is amiss immediately - without grepping changelogs for a CVE lines. m0.2c -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message be

Re: [go-nuts] Ternary ... again

2018-08-16 Thread Wojciech S. Czarnecki
t; wrote this just because he could. His older self longs much for ternaries, pre/post increments, do{}while and a few other things but is so happy that young rookies can't pollute code he is responsible for in ways he himself once did. ;) FYC > R. Mark Volkmann > Object Computing, Inc. --

[go-nuts] [ANN] bplint - linter tool for Bitpeek format strings

2018-08-16 Thread Wojciech S. Czarnecki
hir/bplint Bplint docs: https://godoc.org/github.com/ohir/bplint Bitpeek package: https://github.com/ohir/bitpeek Bitpeek docs: https://godoc.org/github.com/ohir/bitpeek Enjoy! -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribe

[go-nuts] [ANN] Bitpeek. Make bits human readable.

2018-08-09 Thread Wojciech S. Czarnecki
. 2x faster than fmt.Sprintf with string output. 3x faster with its native []byte output. MIT license. Repo: https://github.com/ohir/bitpeek Docs: http://godoc.org/github.com/ohir/bitpeek Enjoy! -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message

Re: [go-nuts] function's argument default value

2018-08-22 Thread Wojciech S. Czarnecki
sed would be against sacred readability of Go code. See Jan Mercl's reply for details. PS. Try [https://racket-lang.org/]. They allow every one to write code readable only by the very same person. ;) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message becau

Re: [go-nuts] Re: How to setup your development environment using Go modules

2018-08-31 Thread Wojciech S. Czarnecki
; warts like this make the change to modules an unwelcoming experience > for Go developers. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

Re: [go-nuts] Are Go floats smarter?

2018-09-02 Thread Wojciech S. Czarnecki
ent it prints 0.018¤ (using 5/4 rounding rules). The -500µ¤ goes to wherever local accounting law imposes on me. Surely with pennies I'd do same thing ;) > For financial applications you should use decimal floating-point numbers. And soon see pink slip. Or even go to jail. > Manlio > --

[go-nuts] [Go2 generics] Craftsman pov, craftsman wishes

2018-09-09 Thread Wojciech S. Czarnecki
my wishes now, I want 'em come to life badly. Let Morpheus do his work. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

[go-nuts] Why can't we use unicode? [Go2 Generics]

2018-09-06 Thread Wojciech S. Czarnecki
. (On any linux distro have over 3000). Why on earth keep on ascii? IPA: ʅ ʧ ʭ (0x285, 0x2a7, 0x2ad) Latin-E: « » ¦ Latin-A: Ħ ŧ Ŧ Ɏ Latin-B: ǁ ǂ -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups

[go-nuts] "Craftsman's" Go Generics proposal

2018-09-10 Thread Wojciech S. Czarnecki
As empty criticism is bad, I felt compelled to give a consistent* counter-proposal. One that can make my "Craftsman wishes" code from previous post compile and run. Draft is available at https://github.com/ohir/gonerics Both criticism and applauds are welcome. -- Wojciech S. Czarnec

Re: [go-nuts] Reference to type satisfying a specified interface

2018-08-31 Thread Wojciech S. Czarnecki
terface) one. Now common checks are factored out and all "checkable" structs have 'IsOK' methods that call relevant series of "generic" checks but this would not be done without previous translation from hierarchy to separate typed funcs) Good luck! -- Wojciech S. Czarnecki <<

Re: [go-nuts] multilingual, multiplatform system - golang - idl

2018-08-31 Thread Wojciech S. Czarnecki
lers) https://github.com/google/flatbuffers > thanks in advance, srini > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] "Craftsman's" Go Generics proposal

2018-09-11 Thread Wojciech S. Czarnecki
java.util.AbstractSequentialList >>>java.util.LinkedList >>>Implemented Interfaces: Serializable, Cloneable, Iterable, >>> Collection, Deque, List, Queue >> Draft is available at https://github.com/ohir/gonerics TC -- Wojciech S. Czar

Re: [go-nuts] Generics - Min challenge

2018-09-12 Thread Wojciech S. Czarnecki
.com/ohir/gonerics > (With contracts I'm doubly sure it can't be done, as the contract for Min > would have to permit both Less and <, so then Min(X) would only be allowed > for types X having both Less and <.) TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You r

Re: [go-nuts] Multiple directory paths in $GOPATH and go get

2018-03-09 Thread Wojciech S. Czarnecki
) item in the path > collection? > No. Go get uses first one. You may execute go tool setting process' environment as for any other unix executable: GOPATH=/some/path go get reposite/user/package Then package will be installed in /some/path/src/reposite/user/package -- Wojciech S. Czarnec

Re: [go-nuts] Re: Hello World - unexpected NUL in input

2018-03-29 Thread Wojciech S. Czarnecki
P.S. If you need line numbers you may annotate input with grep: $ grep -n file.go | iconv -f utf7 2>&1 | tail -1 Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts&

Re: [go-nuts] Constraints for generics

2018-09-30 Thread Wojciech S. Czarnecki
d some time fighting it on CGG threads - in hope that he will not waste his. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rece

Re: [go-nuts] Go standard library documentation for older Go versions

2018-10-16 Thread Wojciech S. Czarnecki
oc, but docs # come from the -goroot $mirror_path/go4doc > but I'll settle for easy access to docs for older versions. hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts

Re: [go-nuts] Debian package for Go 1.11 on the way?

2018-10-16 Thread Wojciech S. Czarnecki
here you'll find https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz link. Uninsatll your ancient debian packages before. > Lasse hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google G

Re: [go-nuts] Generics: an unwelcome conclusion and a proposal

2018-10-16 Thread Wojciech S. Czarnecki
form of contract. As much as CGG's "for type". Ah, and CGG has one less new keyword ;) But I like your approach. Right after mine's. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "

Re: [go-nuts] Go 2 Proposal Comments

2018-10-27 Thread Wojciech S. Czarnecki
Java [1]. They want it being a rotting corpse by the Jan.2020 deadline. And it augurs well for all Gophers ;) [1] https://www.oracle.com/technetwork/java/eol-135779.html -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google G

Re: [go-nuts] Code generated by generics draft

2018-11-03 Thread Wojciech S. Czarnecki
: I'll consider Burak Sedar's **like Type** within CGG contract. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

Re: [go-nuts] Go 2 Proposal Comments

2018-10-27 Thread Wojciech S. Czarnecki
yself. Here is better. At least for mail list subscribers. TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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

Re: [go-nuts] Go 2 Proposal Comments

2018-10-27 Thread Wojciech S. Czarnecki
troll. I called yours Java advocacy on Go lists **trolling** - pointing to the excerpts from the definition. The only point that slipped to the excerpt but shouldn't, was "to sow discord". I apologize for that slip. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You re

Re: [go-nuts] Error Handling Best Practice (error wrapping)

2018-10-08 Thread Wojciech S. Czarnecki
ry size of Go's. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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...@googlegro

[go-nuts] [Go2] rename "Error" to "Fail" in Go2

2018-10-08 Thread Wojciech S. Czarnecki
While we are at errors, I think that the most consequential error of Go1 spec was Error, the name. Had the expected wrongs were named correctly as Fails I would be happy; and some others would likely be happier too. Just a fleeting thought. -- Wojciech S. Czarnecki << ^oo^ >&g

Re: [go-nuts] Are C allocated memory completely isolated to Go memory in any cases?

2018-09-29 Thread Wojciech S. Czarnecki
> [library] You can try to leverage existing C implementation of Go channels for the wrapper: https://github.com/tylertreat/chan [IDNK if these are still functioning with go1.11, ofc] Example: https://github.com/matiasinsaurralde/cgo-channels > Best, > changkun > Hope this helps

Re: [go-nuts] Constraints for generics

2018-09-30 Thread Wojciech S. Czarnecki
s? (Its current state of affairs, btw). @Christian Read other threads' replies made from reng...@ix.netcom.com, esp ones of "java's better" attitude, before you start to write a reply to an unfounded critique. Fighting someone else's straw man makes no sense at all. [1] https://

Re: [go-nuts] Are Go floats smarter?

2018-09-02 Thread Wojciech S. Czarnecki
s (i.e. where the final owner of rounded off micropennies is known :) The decimal floats libraries are ok, esp. for analytics purposes but for typical money calculations old "use ints, Luke" ways are both faster and more error-prone. YMMV ofc. > Manlio -- Wojciech S. Czarnecki &

Re: [go-nuts] Are Go floats smarter?

2018-09-02 Thread Wojciech S. Czarnecki
On Sun, 2 Sep 2018 20:11:40 +0200 "Wojciech S. Czarnecki" wrote: > error-prone s/error-prone/error-proof/ of course. Though this slip tells me that in fact either way (use ints/use libs) has its error-prone spots. Peace, -- Wojciech S. Czarnecki << ^oo^ >> OH

Re: [go-nuts] Re: Are Go floats smarter?

2018-09-02 Thread Wojciech S. Czarnecki
On Sun, 2 Sep 2018 15:54:08 -0700 (PDT) José Colón wrote: > if a package that could provide similar ease of use in performing > infinite precision calculations would be a good idea https://github.com/ericlagergren/decimal It does not fit into stdlibs imo. -- Wojciech S. Czarnecki

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-20 Thread Wojciech S. Czarnecki
I moved reply to the separate thread. Subject: "Is "Craftsman's approach" proposal generic enough?" https://groups.google.com/d/msg/golang-nuts/FOGMEFlL04s/kGQ9mKSsCgAJ -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are

[go-nuts] Is "Craftsman's approach" proposal generic enough?

2018-09-20 Thread Wojciech S. Czarnecki
d by the author of the code constraints on ALL of "in" typeholders. [conjugated] All constraints in for type contract must be fulfilled by the substituted type for it to pass. == Seem that it is not enough clear :( Should the "Terms"

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-19 Thread Wojciech S. Czarnecki
ject code will have at most as many variants as M and N have different base types / for-type-cases at most. It further can be size-optimized by factoring out type-sized operations reusing a given code chunk for more than one base/case. Hope this helps, -- Wojciech S. Czarnecki << ^o

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-19 Thread Wojciech S. Czarnecki
as x any struct with Value field that happens to be int based. So Ticket (s) of below can be webo.Summed too. type Reward int8 type Ticket struct { n string Value Reward } -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subsc

Re: [go-nuts] The If Statement: Switches are better except for a single condition (change my mind)

2018-09-24 Thread Wojciech S. Czarnecki
most one default case and it may appear :: anywhere in the "switch" statement. A missing switch expression is :: equivalent to the boolean value true. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Grou

Re: [go-nuts] performance optimization

2019-01-16 Thread Wojciech S. Czarnecki
fires 6. commit state (results of batch) "n" n += 1; goto loop Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

Re: [go-nuts] Go offline development recommendations

2018-12-12 Thread Wojciech S. Czarnecki
m under our feet. > Any advise will be most appreciated. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivin

Re: [go-nuts] Go offline development recommendations

2018-12-12 Thread Wojciech S. Czarnecki
ilder box to get out of sync. Esp if all use git. Even with fossil-scm central repo and its autosync caps its still possible. Note that IMO, though ;) -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Go offline development recommendations

2018-12-13 Thread Wojciech S. Czarnecki
hat your client is concerned about security, not about connectivity. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gro

Re: [go-nuts] Go 1.12 Beta 1 is released

2018-12-20 Thread Wojciech S. Czarnecki
nts. [1] https://github.com/magefile/mage [2] https://github.com/golang/go/issues/28152 hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] Re: Any NULL CIPHER available in TLS package?

2018-11-28 Thread Wojciech S. Czarnecki
older hmac alone. See https://en.wikipedia.org/wiki/Galois/Counter_Mode > > --Unilocal Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe f

Re: [go-nuts] When to use panic?

2019-01-03 Thread Wojciech S. Czarnecki
On Thu, 3 Jan 2019 06:24:24 -0800 (PST) 伊藤和也 wrote: > When to use panic? When your code can NOT safely proceed. I.e. if some error state is not recoverable. You should NOT use panic in a library you write for others. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >

Re: [go-nuts] Web Scraping.result not show that expect result are Stone Age ,Roman Britain

2019-01-09 Thread Wojciech S. Czarnecki
On Tue, 8 Jan 2019 21:05:00 -0800 (PST) pdbw58...@gmail.com attached a screenshot: https://www.google.com/search?q=how+to+copy+and+paste+text > [image: Screen Shot 2019-01-09 at 12.03.04 PM.png] -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this mess

Re: [go-nuts] Web Scraping.result not show that expect result are Stone Age ,Roman Britain

2019-01-09 Thread Wojciech S. Czarnecki
helps. -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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. F

Re: [go-nuts] Generics "craftsman approach" proposal update

2018-09-12 Thread Wojciech S. Czarnecki
for reader**. Constraint list is not closed. Only restriction on this list is that a constrain (as for now) must be expressed as **known** Go construct involving a type or part of it (ie field). No operators or code. > > Ian TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- Y

Re: [go-nuts] Generics - Min challenge

2018-09-12 Thread Wojciech S. Czarnecki
k off on my doom premonitions, at least entirely, at least now. I apologize again for heavy words. Don't take them personally. > Thanks. > > Ian TC -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Generics - Min challenge

2018-09-12 Thread Wojciech S. Czarnecki
ontract - `for type` switch - a bunch of constrains. But ALL for type constraints are based on already familiar Go type definitions and casts. > > Ian TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to t

Re: [go-nuts] Generics - Min challenge

2018-09-12 Thread Wojciech S. Czarnecki
Sum method func (x type []K) Sum() (total type K) { for type K range int64(), float64(), complex128() // whole contract for _, v := range x { total += v.Value } return } Sum func differs only in signature: func Sum(x type []K) (total type K) { > > Ian -- Wojciech S.

Re: [go-nuts] Go memory usage inside containers

2018-09-12 Thread Wojciech S. Czarnecki
o virtualzed. i.e. giving info just about instance. > Thanks, > Leigh > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivi

Re: [go-nuts] Contracts and fused multiply add

2018-09-15 Thread Wojciech S. Czarnecki
eConstraint". func maMustFMA(a, b, c type T) type T { for type ( T = float64() T = someConstraint // ) // ... } Thanks in advance for the answer -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google

Re: [go-nuts] Contracts and fused multiply add

2018-09-16 Thread Wojciech S. Czarnecki
On Sat, 15 Sep 2018 11:53:51 +0200 "Wojciech S. Czarnecki" wrote: > With CGG `for type` contracts now you can use constraint > that allows for any custom type of base float64 Ie. **precisely** castable to a base of float64, so substitute type T with base of float32 will be tr

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-17 Thread Wojciech S. Czarnecki
On Mon, 17 Sep 2018 11:18:51 -0700 (PDT) > Eric Johnson >> jucie.andr...@zanthus.com.br I hope that the team will make an informed decission and assesment taking into account both the opinion of the community and its good ideas to make something simpler. See all community proposals at

Re: [go-nuts] Why can't we use unicode? [Go2 Generics]

2018-09-13 Thread Wojciech S. Czarnecki
.org/ukelele > https://github.com/bcmills/extra-keyboards-for-chrome-os/tree/custom-sequences > ² https://github.com/samhocevar/wincompose Thx for sharing :) TC, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed t

Re: [go-nuts] Generics - Min challenge

2018-09-14 Thread Wojciech S. Czarnecki
osal. It just can't be read by a human. Compiler would cope with that. > Manlio > -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivi

Re: [go-nuts] Generics - Min challenge

2018-09-14 Thread Wojciech S. Czarnecki
[Bcc: drchase] On Wed, 12 Sep 2018 10:55:26 +0200 "Wojciech S. Czarnecki" wrote: > func Min(a, b T) T { `func Min(a, b type T) type T` of course. Late correction but needed. > for type switch { > case T func(T) Less(T) T: > return a.Less(b) > } >

  1   2   3   >