divinity76
divinity76
@andelf do something like ```Go var curl_global_inited bool = false func go_curl_global_init() { var once sync.Once onceBody := func() { // call the real curl_global_init() here, and when done: curl_global_inited...
@umurkontaci will that also help protect threads from calling curl_easy_init() before the thread calling curl_global_init() has completed the call?
actually, if you go with the sync.Once.Do method, you don't have to do the `for curl_global_inited != true` loop at all, because sync.Once.Do blocks other callers until it has executed...
hmm reviewing the changes here, seems something else might be off, is it possible that the default sort algorithm for `sort` isn't portable? maybe Apple/MacOS's `sort` use a different sort...
>Technically it is a word what does it mean? where have you heard this word? it's not in the Oxford dictionary, it's not in Urban dictionary, it's not in https://en.wiktionary.org...
made a PR removing the word: #185
> https://digitalcommons.butler.edu/cgi/viewcontent.cgi?referer=&httpsredir=1&article=1810&context=wordways it is not a word that's definitive, OVERLUBRICATIO is not a word, it's a spelling error. Signed [Word Ways](https://en.wikipedia.org/wiki/Word_Ways)
if you wonder about all the (int) casts, it's because the algorithm was SUPPOSED to be implemented using integer types, but PHP likes to automatically convert ints to float/double's during...
@ocram i made an alternative implementation which makes BCMath or GMP a mandatory dependency for integers above 0x7FFFFFFF , see https://github.com/delight-im/ShortURL/pull/12
first off, there's a merge conflict, could you fix that? 2nd, i think it would be better if the JavaScript and Java patches were in 2 separate pull requests