« first day (1164 days earlier)      last day (2870 days later) » 

5:05 PM
@rolfl So how does Go perform in production?
 
When we get there, I'll tell you ;-)
I am pretty sure that, compared to Java, some things will be better, other things worse.
 
Don't you have any opinion on Go yet? :)
 
I am impressed by the go-routine mechanisms - they allow really fast context switching - concurrency in Go has some significant advantages.
Also, the single-executable build-target is "really nice".
I worry about some of the maintainability aspects though. It's still so immature in things like the build tools, validation systems, etc.
 
Sounds like IBM will be providing those? ;) Does IBM actually sponsor Go as well?
 
Also, it's not great for "hybrid" open/closed source development for enterprise-grade systems.
We have had a half-dozen instances now where our core code is failing to compile because third-party libraries from github have changed their code.
It's hard to get "specific" versions or "releases" of those code dependencies, and maintain them too.
In Java, JavaScript, etc. for example, the Maven/npm systems make specific versions of the dependency easy to get. In Go, you're SOL.
You have to copy the third-party code locally, then maintain it outside of the source repo.
 
5:12 PM
@rolfl That sounds pretty disappointing, I know Rust's build system, Cargo, offers a similar option but you can link to revisions or tags there
Or gamble your luck and link them to master directly
What made you consider Go? The light-weight threading?
 
Effectively, the go process is to track master.
I did not make the go decision, I was against it, actually.
It has had a number of advantages, and some disadvantages too.
Culturally, the biggest advantage is that essentially none of us knew Go to start with, so previous language experience was not part of the new team's pecking-order ;-)
The technical advantages are that it's easy to deploy once compiled, and that it has some good network-level infrastructure. The channel/go-routine/stack advantages are clear too.
We are spending a lot of time re-building infrastructure (both runtime, and tooling) that exists in other languages already, though.
 
Right, but doesn't say Java offer a lot of advantages too if you are willing to write custom tooling anyway?
 
Java likely has the tooling already - no need to write custom tooling....
The Java performance will be adequate.... but Java deploys are more complicated than go.
 
I mean if Go has some clear advantages with this channel/go-routine/stack thing, then (depending on how much money was thrown at it) you could've written that yourself too
 
But now you also have to factor cost into the picture. Oracle is really starting to piss people off with their new implementations
 
5:16 PM
Performance is our least concern, for what it's worth..... we try write good code, but if it gets the job done, the performance can come later. We are not constrained on compute resources.
The channel/go-routine/stack is not possible to implement in Java ;-)
Essentially Go ignores the OS scheduler for threads, and runs it's own internal "routine" manager.
These "routines" make "lightweight threads" look positively obese.
 
0
Q: Log collisions in generating unique random strings

akinuriI've created a small class to generate unique random strings. It works fine. I also want to log the collisions of the generated strings. I check if the generated string is in the array for uniquness: public static function add(&$array = [], $length = 1) { $hash = self::rand_str($length); ...

 
@rolfl The "If it uses too much RAM, buy more RAM" solution?
Using its own scheduler is interesting definitely
 
Essentially. ..... we have millions of CPU's to use, and 10's of millions of GB's of memory.
 
can you share some with me for my new computer? lol
 
Each machine is like 56-core, 512GB, and we run VM's on those... and we currently have hundreds, but will have close to millions at production time.
 
5:19 PM
@throck95 That's not how cloud computing works... :p
 
@skiwi one can dream
 
@rolfl That's some really cool hardware
Out of interest, DDR3, DDR4 or even some other type of RAM, I'm trying to imagine what it looks like... possibly multiple processors, or even multiple motherboards in some way?
 
@skiwi - by maintaining their own scheduler they have also made stack frames dynamically sizable, so a method that takes no arguments, etc. can have a tiny stack fram when you call a different function.....
 
@skiwi Look wise or how it works?
 
so, because the stacks are tiny (like 10's of bytes), and each go routine has a simple stack, you can have millions of go-routines running in a gig of memory...... and no real performance impact.
Also, recursion can "go really deep".
 
5:22 PM
badum tish
 
Does the OS scheduler always agree? Like, can you just tell it to back off and let Go handle everything?
 
As a test, I put a 1Gig, 1-core system up with a single go-routine dedicated to each network socket, then got 750,000 network clients to send/recieve 1KB each second....
It topped out at the network performance limit (10GBit network).
CPU was sitting at 15% or something.
About the OS scheduler, the Go runtime allocates 1 OS thread per virtual CPU you have (i.e. a 4-core HT system will have 8 threads running only).
 
guess the next step is to make a more effective network solution lol
 
That's very impressive, looks like virtually impossible to achieve in Java
 
@rolfl I thought go get was decent enough?
 
5:25 PM
Then, the go-process will set up an event-like and sometimes time-sliced management inside that thtread to manage each of the go-routines that are active/runnable.
it has significant concurrency advantages because you are essentially always thread-safe inside a single thread (which is often the whole program).
It gets a little complicated if there's an OS call to a blocking routine (typically IO), then go does spawn a new thread and migrates the blocked thread's other go-routines to the new thread.
@DanPantry - go get is great as long as the code that you go got last time is the same as the code that you go get now.
If the go-gotten code has changes, though, and those changes introduce bugs, or compile-time failures, you're screwed.
You can't go get a specific version/commit of the code.... and, if you did, you can't easily "maintain" the version you got.
There is "vendoring" support, but it is complicated for other reasons.
(vendoring copies the code to your local repository, and now you have to manage the code yourself - essentially a "fork" - which removes much of the advantage of go-get.
 
Is there a status on getting a go get fix?
 
This should probably be posted on code review instead. — Julien Bernu just now
 
Not that I know of - it's sort of "go culture" that after you've compiled OK, you move on ;-) Changes to your, or your dependent's source code is OK after that.
 
If this is working code that you think could be improved, see Code Review. If not, please see How to Ask and clarify the issue. — jonrsharpe 20 secs ago
 
That's rather odd
 
5:32 PM
You'd think it worked better, but it does not (if I am wrong, please tell me ;-) ) I have been struggling with these problems for a while.
go get also sucks at getting code from privately secured sites - Single-Signon for enterprises is common, but go-get can't cope, often.
 
@rolfl I was just about to ask, one of these days, if you're just gonna let me sail past ya or what
 
So, we had to re-implement the same functionality to get things done in our own systems
@janos - I suspect you'll pass me without much effort ;-)
But, to spite you, I should keep you at bay for a stretch when you're about 1K less tham me.... ;-)
 
Quick, everyone upvote @rolfl!
 
@rolfl I honestly don't want to...
 
I removed my subscriptions to all but the "go" tag. I turned off e-mail notifications for inbox items, etc.
So, I routinely check the site a couple of times a day, hit the review queue, and look for inbox notifications.... and if it's quiet, I move on
(I am still miffed that I lost out on my consecutive days....).
 
5:36 PM
I noticed conversations about your new routine
 
I will likely pick up again at some point, but not there yet.
 
so I guess we need to drive up Go traffic to get you more rep
 
@rolfl I also lost out while my PC loads all my pinned tabs every day :/
 
it's probably a good thing
 
http://www.commitstrip.com/en/2016/07/11/a-bad-workman-blames-his-tools/
CommitStrip
A bad workman blames his tools
CommitStrip
1468258509
 
5:39 PM
@janos - out of interest, has there been any further discussion on completing the merge of and codereview.stackexchange.com/tags/performance/synonyms ?
 
nada
 
meta.codereview.stackexchange.com/a/6049/31503 <--- sort of implies, then, that they should be de-synonymized.
 
re-reading now
 
Right now it's impossible to tag a question with , so what's the point?
@SimonForsberg FYI ^^^ Since it's your answer ;-)
 
@rolfl sounds like you need to go get new-package-manager.
2
 
5:59 PM
This is better suited for codereview.SE. Post it over there, refactoring advice is off-topic here. — Jared Smith 21 secs ago
 
The axle count of trains in Switzerland must not be a multiple of 2^8 of the system does not detect a train. http://i.imgur.com/DrEinPB.png
 
remonking
 
@DanLyons ok, that's comforting. my code's not that bad after all.
 
@Mat'sMug there's always worse, you just don't get to see it 90% of the time
 
6:04 PM
new movie plot: terrorists cause huge train accident by unhooking the correct number of cars
 
@rolfl Hmm... yeah I think we should de-synonymize them...
 
@Mat'sMug Maybe it's just a hardware limitation...
 
According to @rolfl, hardware is never a problem! ;D
 
@Mat'sMug that's not "bad" code... it's a tradeoff
 
@SimonForsberg what will be the benefit of that? I have a hard time understanding this
 
6:07 PM
@janos Optimization and Performance is not the same thing IMO. Performance is a subgroup of Optimization.
There's plenty of other things you can optimize besides performance.
 
I agree with that part
 
I'd much rather burn the optimization tag completely, as it is too broad
 
if we de-synonymize, will that mean that it becomes possible again to tag posts with ? (which is something we don't want)
 
@janos Then we de-synonyimzie (gotta learn to spell that) and go through the existing optimization questions and re-tag as appropriate?
 
6:10 PM
wouldn't it be better to re-tag first? so that we don't get new incoming ones while doing it
 
re-tag what to what?
 
So I should re-tag my questions that have the tag?
 
Should be easy to detect the incomine ones though
 
re-tag existing optimization questions to something better (or remove the tag)
 
@syb0rg Yes please.
 
6:11 PM
In progress
 
sounds like a mission
 
When there are no optimization questions left, then we could blacklist it maybe?
 
can't it be blacklisted now already?
FWIW IMO is just as meta as or the late
 
Just a note, performing a search on questions is difficult since it redirects to
 
hence the need to de-synonymize it
 
6:17 PM
how to see the blacklisted tags?
 
1
Q: Extension methods to get direct reports from user

Michael Brandon MorrisI have created a few extension methods to get the direct reports of a UserPrincipal as UserPrincipals themselves. This saves the user of the API quite a bit of typing. public static IEnumerable<UserPrincipal> GetDirectReportUserPrincipals( this UserPrincipal userPrincipal) { var directRe...

 
@janos good question
 
can you tell me an example blacklisted tag?
 
Was blacklisted?
was
 
How can you tell a blacklisted tag from a normal one?
 
6:22 PM
I'm just looking them up on meta
 
How do we blacklist a tag?
 
All my questions have been scrubbed of
 
nice job @syborg, thanks!
 
1
Q: Python - A program that calculates where the patient results reside within the normal distribution; any way to better my code?

Bilal 'Cheese' AkbulutMy background is medical, but I required a program that calculated whether my patients are "normal" or 1-2 SD values away from the mean. The program works just fine, but I'm interested how I can do better. (This all was made after I started learning python a month ago, so please be kind) I'm par...

 
@janos Just don't look at the front page ;-)
 
6:35 PM
Note that "Merging" does the exact same thing as "Synonym" except it also rewrites the old question's tags without "activity" on the old things.
The end result is similar to what we have now - that new questins all go in as "performance", and there's a synonym from "optimization" to "performance".
The benefit is that the histpry is clearer, and (for me, personally), people get credit toward "performance" tag for all the work they did in "optimization".
(i.e. I will likely get a gold performance tag after the merge)
If you want to see what posts are affected, there's an SEDE query that I wrote for it....
 
I think the person in Boti's code review is mistaken. It is certainly not common to use verbs as names for classes. — Todd 53 secs ago
 
Zak
Our PM just now: "I resign" [Walks off] [Starts humming]
 
LOL.
 
6:41 PM
Your company PM, or your country PM?
 
Zak
@Hosch250 Country
My company doesn't have a PM. Only me.
 
Maybe he's happy to be gone. I don't blame him.
 
Zak
If I ever resigned as leader of a country, I would definitely hum something jaunty while I walked off into the sunset.
 
Thanks santa!
 
I didn't know it was December...
 
6:52 PM
Nah, santa is year-round here. Just the voting.
And halloween is in January when the top users, typically the mods, pay the santax.
 
If she asks, I don't eat candy
 
0
Q: Memoizing decorator with retries - now with backoff added! (Part 3)

DannnnoA continuation of Memoizing decorator with retries, part 2, and related to http://codereview.stackexchange.com/a/133493/47529. I liked my decorator before, but especially in my original use case of a spotty network connection it makes sens to allow for some delay between attempts. The specifics o...

 
7:09 PM
@rolfl I opened 3 random questions, and I think the tag should be dropped from them, rather than transformed to : #1, #2, #3. Seems we have to review one by one
 
@Zak LOL
@Hosch250 Thanks! that's pretty awesome
 
Windows batch scripts are a PITA
 
7:26 PM
0
Q: Word VBA Code to Automate Table Captioning

Kelly Tessena KeckI have a Word VBA script that auto-generates a table caption based on user input & a previous heading. Its purpose is to speed up editing & formatting of massive software documents (like the 1000+ page test procedure I'm currently reviewing). At this point, it's slightly quicker than scrolling ba...

 
@Zak Right
 
@EBrown Hows Monopoly coming?
 
0
Q: Business logic to interact with Data access layer with exceptional handling

RamaThe code below is the Bll and the dll logic for the form submission with multiple pages. A form will have more than one page, will have a button on every page until it reaches the final submission. For the first page when submitted,the following actions need to be done. 1) Database table 1 shou...

 
@CaptainObvious Exceptional handling?
 
7:52 PM
This question seems too broad. Does the code work? If so, you should post it to CodeReview instead to get suggestions. If not, what behavior do you observe? What did you expect? — skrrgwasme 35 secs ago
 
0
Q: A brainfuck interpreter in python 3

roverI've been writing a brainfuck interpreter in python 3. It's nothing serious, but I'm trying to make it as good as possible (considering program structure, user experience and etc) for my own learning purpose. Any suggestion is welcomed. """A brainfuck interpreter written in Python 3.5.""" impor...

1
Q: Checking if a line in a file contains user.Handle and '-r'+any single digit number

lolThe title pretty much explains everything. I'm try to check if a line in a file contains user.Handle and '-r'+any single digit number, AND that the aforementioned user.Handle does not contain '-r'. I'm sure there is an easier way to do this. And I'm sorry if this made your eyes bleed. if (line.C...

 
You should check in Code ReviewSourav Ghosh 23 secs ago
What is it supposed to generate? How do you check that it is correct? As @SouravGhosh said, Code Review is the right place for such questions, not StackOverflow. — Rudy Velthuis 57 secs ago
"How ... to make it much better?" Better display, better clarity of code's intent, better performance, better portability? Clarify your goals and then consider Code Review. — chux just now
Codereview requires a clear description as well. — Eugene Sh. 52 secs ago
What do you mean by "best syntax"? Most efficient? Shortest? Most readable? This feels more like a Code Review question than a SO question, as there's no problem to be solved here – your current code already works as expected. Personally I would do responseParameters.map{$0 + ":" + $1}.joined(separator: "+"). — Hamish 31 secs ago
 
8:10 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Matrix rotation
 
8:30 PM
interesting: migrated posts have null as the value of OwnerUserId (in SEDE)
 
even when the user does have a CR profile?
 
Should probably go to codereview.stackexchange.com — HimBromBeere 26 secs ago
 
Yes. There are 715 questions without an owner id. I guess these are all the questions every migrated here.
 
I have 5x, 0x. #CleanMug
 
8:46 PM
not anymore! :0)
'night @janos
 
We are not a code review site. Please expain the specific issue and show only that code. — Tim 30 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com, not here. — Gabe Sechan 33 secs ago
 
0
Q: module for creating and operating the database using sqlite3

Raghavendra lokineniimport sqlite3 def login_table(table_name, name = None, age = None): """ creates the tables for different users """ conn = sqlite3.connect("names.db") c = conn.cursor() try: c.execute("CREATE TABLE IF NOT EXISTS table_"+ table_name +"(NAME TEXT, AGE REAL)") except sqlite3.OperationalError:...

0
Q: First attempt at implementing MVP... Could some check if it's correct

droanThis is my first try at MVP. So could somebody please check if the implementation is correct... The app displays a list of photos in a grid and when an item is clicked, the image flips and displays the backside which contains the name of the image. Also I have no clue on how to get started with t...

 
9:04 PM
@syb0rg Does this website seem to provide good examples of CMake? It looks like the best website yet.
 
9:19 PM
0
Q: Hashtable vs array, when does an array win at performance?

dreamiI had been looking into many examples of Hashtable vs Array and in every case, an example of a Hashtable winning is posted and a justification for using an array instead is a bit more ambiguous, but so far no solid example of an array actually outperforming a hashtable so it would be great if som...

0
Q: Retrieves largest, leftmost substring with maximum of two different characters

ChubakThe title is a bit shaky so I'll explain it in details. Assume we have a string and with n characters. Our mission is to find the rightmost, largest, two character maximum substring where the characters are not equal... It's a famous interview question and I hope you're all familiar with it. Her...

 
9:30 PM
0
Q: Java practice exam

Bianca RuizCan I get feedback please? As I see it, the first run through the for statement sets z at 0, so it will enter the switch at the default, and fall through to the next case. (def 2) On the second run through the for statement sets z at 1, so it will enter the switch at case x-1, and fall throug...

 
^^ off topic. On that note:
0
A: Frequently Posted Comments

Vogel612Question asks for an explanation of code Unfortunately this question doesn't reflect what the site is about. We review code that you have written for improvements. It's not on topic to ask for explanations of code that has been written by someone else than you. For more information, see the [...

Suggestion for new auto-comment tailored to questions asking for an explanation. Improvements welcome
 
0
Q: ViewModel Mutator Side Effect

David PriceI am try to determine if the following approach would introduce side effect. I have a setter which sets the ItemsSource of another property. Would this technically be side effect, and if so what is a better approach? set { _System = value; PropertyChange...

 
10:02 PM
Hai
 
Hai @Sometowngeek Welcome to the 2nd monitor
 
How goes it?
 
fine I guess. I just woke my roomies at almost midnight because Spotify decides to make advertisements triple the volume of normal playback
 
ouch...
Fortunately, I never have to deal with that rude awakening :P
Hi @TheNoonMoose :)
 
0
Q: Simplifying manual data entry with a UserForm Excel 2010

Brad JohansenI am an absolute beginner. This is the first thing I've ever coded in VBA. I don't know if I'm allowed to ask for just criticism in general without a question. But just in case I can't, this file is going to get very large and I imagine I will have resource optimization problems - so what shoul...

 
10:05 PM
hi @Some
er, @Sometowngeek
 
nice first message :)
 
it was week
ugh
 
hi @Some(but not all)
 
weak
 
editing is a thing, you know? ;)
 
10:06 PM
see i knew i had a good reason to come here today <whoops bad edit>
 
Arrow Up makes it faster than using the damn mouse
 
It does....
 
'nuff chat talk @TheNoonMoose can we help you?
 
I hate HATE the mouse!
* whistles for Tom *
Go get Jerry!
 
10:07 PM
oh nah i'm an ee stack exchange refugee just checking out what's going on in the rest of the world
 
tehee. You might know one of the regulars here then.
Mast is chilling here regularly
 
i suppose if anyone wanted to answer a few questions about labview code review then maybe i'd have something but i highly doubt anyone around uses labview
 
Lol... Someone in C# room posted this. It's funny.
 
Zak
@TheNoonMoose The only way to find out is to ask.
 
hmm... scope misconception: this site is not about the process of code reviewing in itself or tools used to conduct them
 
10:09 PM
oh it is for actual review of code
well that might be even more useful in the long run then
 
@Vogel612 only 11.99 (plus your soul) a month to skip ads
 
might be nice to have someone who has actually seen some labview before give me a few pointers
 
@Sometowngeek LOL.
 
@Quill or I could close the window that's on their side :D
 
10:10 PM
@Hosch250 ;)
 
@Sometowngeek void** pointers;
 
Zak
@Quill I've neglected to tell spotify that I am no longer a student, so only £5 a month here.
 
@Vogel612 giving your hardearned money to greedy corporations is easier
 
oh...............
:D
 
@Zak Students get Spotify cheaper there? I don't think that works here, but it would be nice ;-;
 
10:11 PM
also this is like the fifth time I had "If your Dad doesn't have a beard" in my discover weeky list ....
 
there is one question on codereview with the word labview in it and it is not at all about labview. doesn't mean i can't ask though right?
 
@TheNoonMoose hang on... LabVIEW is a ... library for C#??
 
unfortunately no
 
10:15 PM
because if it is, that's just ... two zombies, at worst
 
i can't tell if you're kidding, have you never heard of LabVIEW?
 
nope. Might be because I've been more of a Java person
 
oh man welcome to my hellish life then:
 
@TheNoonMoose OW! My eyes! I'm blind :(
 
Zak
@TheNoonMoose And that's meant to help!?
 
10:17 PM
@TheNoonMoose Circuits?
 
LabVIEW is just the absolute worst
 
Looks like it to me.
 
/rant and more information
you want a review on some of that?
 
I remember doing similar-ish stuff with Altera software in one of my classes.
 
i'm trying to figure out if i should even bother asking for a review on labview code on here, because 1) it's so freaking weird and 2) there are no labview questions on here yet
i'm only using it because the company who make and sell the program/environment/editor/what have you also sell test equipment with drivers written in that language
and the equipment...is very good.
very, very good.
also expensive
oh and weird
 
10:20 PM
@TheNoonMoose simple solution... try us
someone might as well read into the language and review it :)
 
yeah i think tomorrow maybe i will clean up some of my code and try it out
i don't have it installed at home, because i can't, because it's licensed and expensive and i'm not even some student- most people i've ever met doing labview were like biomedical or electrical/compsci students
they have a student license
 
Wouldn't it be more appropriate to post this kind of question here? — Rafael Monteiro 37 secs ago
 
@TheNoonMoose it sounds rather intriguing... that language I mean
 
you know it really does have some good aspects to it
once you start getting good at putting the right amount of complexity in each box
it really doesn't take a lot of levels to do some really crazy stuff
ever hear of JTAG?
 
nope.
 
10:30 PM
weird IC test port thing but i implemented the protocol in like, a day, actually working with the new guy to get it done, in labview
i was happy anyways
it's still one of the worst things i've ever worked with and i'm a guy who likes ruby and powershell
 
 
1 hour later…
11:37 PM
There's a special StackExchange network site for when you have working code that you want to speed up. It's codereview.stackexchange.com . If I were you I would copy my question, delete it from here, and paste it as a question there. — Hack-R 26 secs ago
 

« first day (1164 days earlier)      last day (2870 days later) »