Better HN
topnewbestaskshowjobs
Log inSign up

voidlogic

3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions

Submissions

comment 13y ago · link · parent

I dream of the day Light Table has Go support.

comment 13y ago · link · parent

Being at least an average coder is a prerequisite to leading a team of coders.

A team lead that can't code is like an Army officer that can't pass his physical tests or clean his rifle. He will not have the respect of the rank and file. A team lead (as opposed to a project manager) that can't code is doomed.

(Notice I don't mention language, a good programmer can be coding in something new within a week or maybe two and after a couple of months should be completely fluent.)

comment 13y ago · link · parent

Interesting to say the least. Its amazing how much troubleshooting it takes here to deeply understand the issues faced and it appears to me that the levels of abstraction introduced by both Clojure and the JVM increased the complexity and difficulty of the task.

I have a feeling that a C/pthreads or Go program probably would have been much easier to troubleshoot (and likely faster as well).

comment 13y ago · link · parent

This is so true. We grow all those herbs in small pots. We also grow chives, beans, peppers, tomatoes and squash in a few medium sized pots and topsy turveys. No traditional garden needed.

comment 13y ago · link · parent

Unless they are loop counters, array indices, they never are descriptive/intuitive outside of a 5 line function. I write a lot of Go (understatement) and for all but the former, my min is three, rarely two letters. I also buck the "system" and use "this" in my receivers :)

Nothing is worse than seeing a "r" in the body of some function or as a struct member and not knowing if it is a reader, response, request so rather than using "r", I'll go with rdr, resp, req or this (were applicable). That is hardly verbose and our code is immensely more readable than something "idiomatic" like the Go standard library IMHO. I think this really should not be considered an issue of idiomaticness, if is was gofmt or go vet should care.

The short is if you like Go and not single letter var names, great use Go with longer variables names! I realize this is a religious issue so I can already feel the flames burning :)

comment 13y ago · link · parent

Perhaps- then again G+ has a volume for each of your circles so you can get less of the less interesting stuff on your feed.

comment 13y ago · link · parent

To try to be more clear, I'll make up an example. Say you as a founder are a Ruby guy, perhaps you value being able to rapid prototype, throw away code, iterate quickly.

Maybe your product needs to be very high performance so you hire a team of C programmers. What you might find is that their idea of iterating quickly is on a different timescale than yours, due to the low-level and unforgiving nature of C perhaps your team tends to be pedantic (by your standards) or correctness/detail oriented (by theirs).

In this situation your team, influenced by your technology choice, is bringing a different value set than your own to the table. BUT this is not (necessarily) a bad thing, if C really is be best tech for your product your team can strive merge both your and their values; however, my point is without you actively trying to do that, your tech just defined the value set, not you. (In this case it also possible that maybe Rust or Go would have been better tech, but that is a different conversation)

comment 13y ago · link · parent

As a user my G+ experience is so far superior to my Facebook one that I laugh every time I read something like this. I check my G+ every day because my streams are interesting and I enjoy it; I check my FB everyday because my entire extended family, pre-school friends and their dogs have accounts there.

People are crazy to think that Google should not just have one account that spans all their services, it makes business and technical sense; however, if you don't like G+ just don't use it- your Google account just might mean you have a blank place holder page there.

comment 13y ago · link · parent

Not to mention that without a lot of ACTIVE effort to make the stack NOT define you it will. The stack will strongly influence who you hire and who you hire will easily come to define you. A bunch of C/C++/Java/Rust/Go folks are going to have a different value set than a bunch of PHP/Ruby/Perl guys. Not to say their isn't overlap in people or ideas, but people who are attracted to similar technologies are often more self-similar compared to people attracted to other technologies. Depending on the problem space a given technology and the mind-sets that come with it by default may be or less helpful.

comment 13y ago · link · parent

>>I'm guessing you have not really looked into Rust. The idea is to also take a "do it right" approach rather then "à la carte". Keep in mind, the focus in in a different domain. Not really sure what basis you have for the "even more bloated" comment.

C++ is too complex of a language IMHO. Complexity is bad for new people as it takes a long time to know the entire language. And its bad for existing people as it provides too many ways to do the same thing. Rusts features look to be a superset of C++... You could substitute "too complex" with "too big".

>>Anyhow, no reason to have a flame war on the subject. Rust isn't a hammer and neither is Go. :)

I thought this was an interesting and friendly conversion, not a flame war. I do think everyone involved in this conversion probably agrees with each other in general, just maybe not particulars.

And yes everyone has their favorite hammer, that doesn't mean its not worth discussing which hammers are best for which tasks.

comment 13y ago · link · parent

The counter argument is Rust is going to end up an even more bloated ugly language than C++. Go is going to add some of those features, but they are committed to a slow "do it right approach" as opposed to "bolt it on".

>>which means we can control safety and performance much better, but at the cost of the programmer having to think more

Outside of systems software, there is no room for this. If the top 5% of programmers wrote all the software in the world Rust would be great, but that is just not the case.

comment 13y ago · link · parent

>>Rust I think has more potential to eventually replace C/C++

I think Go could replace Java/C++ for server applications and Rust could replace C/C++ for systems applications. I think each is better suited for those domains.

>>Go has some cool features... but I have yet to find a really compelling reason to use it over anything else.

To me its all the good parts of C/Java with all the bad stuff left out + easy concurrency, uber fast compile times, duck/structural typing and a minimalistic ideal.

>>I also find it to be kinda gross looking. (But maybe I am just weird in that respect?)

I think it is the most beautiful language I have ever seen- It reminds me a really really clean clear C, only better. (But maybe I am just weird in that respect?)

comment 13y ago · link · parent

You know why schools teach kids Java/C (the lingua francas of computing) rather than the latest hot 5-min fad? Because it doesn't matter. The kids are taught those languages simply to enable the teaching of computer science theory and software engineering.

This is the way it should be. You will learn new tech as needed your entire career, if you have the right preparation it should be a no brainer. You need to learn the theory once. Outside of the west coast most companies realize this and invest in training as needed.

It is the hipster too cool for school startup kids that have things wrong. They never went to school, they don't realize that picking up their favorite $language is trivial for anyone with the proper background and just a means to an ends, writing useful software.

>>Startups don't hire new grads because they can ramp up faster, they hire them because they don't have families to take up their time, so they don't mind working 80 hours a week for peanuts.

This, although foreign workers can be appealing for some of the same reasons.

comment 13y ago · link · parent

It depends on if regex performance is a bottleneck in your app. I typically use the standard regexp package unless I noticed its a problem (which isn't often), then I switch to a package with the same API that uses PCRE [1].

1: https://github.com/glenn-brown/golang-pkg-pcre

comment 13y ago · link · parent

I do not disagree about the neuroplasticity decrease, that is a fact. I guess I am saying that if you know the foundations (which we agree are pretty constant) which I will call the world model, any decrease in neuroplasticity is outweighed by the acquired skill of integrating new technologies into the programmers established world model.

In regards to the whole neuroplasticity/cognitive decline, I think this varies a lot by person and their environment. I know people in their 60s who are much more agile thinkers than other I know in their 40s.

comment 13y ago · link · parent

I don't think this is a true, learning new tech is skill. Back when I was an undergrad there was a class that basically switched languages once a week after each homework assignment and every 2-3 weeks it switched paradigm (procedural, OO, functional, logic/declarative, etc). The idea was that the tech being used doesn't matter, just the understanding of the theory and the skill to learn new tech. Anecdotally, every time I switch tech now as a professional, I feel I get better at it, faster. Learning itself is a skill to be learned.

comment 13y ago · link · parent

Memory Safe C/C++... Sounds like Go :)- http://golang.org/

The future is now!

comment 13y ago · link · parent

This is a near drop in replacement for "regexp" that uses PCRE: https://github.com/glenn-brown/golang-pkg-pcre

comment 13y ago · link · parent

Umm... MariaDB is slower? http://dimitrik.free.fr/blog/archives/2013/02/mysql-performa...

comment 13y ago · link · parent

$language in this case is C, the lingua franca of computing.

It is almost always the first language ported to any system, almost every computer science program at least covers the basics, it has been in 1st/2nd place on the TIOBE index for over a decade, its the 5th most popular language on github by commits and it is over 40 years old.

But- I'm willing to accept there might be people on Hacker news that don't know C, thats why I gave suggestions to the author to expand on the content and make it interesting to a wider audience. That was the point of my post.

comment 13y ago · link · parent

branches

comment 13y ago · link · parent

Extremely uninteresting- It is like a page of "C-S 1XX: Intro to C" fell out of its bindings and landed on Hacker News.

This might have been mildly interesting if there had been the assembly for a few different architectures (x86, MIPS, ARM, PowerPC, etc) showing how the C code was translated to assembler for each. And could have been very interesting with an additional discussion of memory barriers and atomic operations in C and their relation to assignments and pointers.

comment 13y ago · link · parent

Intel started out targeting the low end discrete graphics solutions, now maybe they re just moving their way up the food chain.

I'm actually more excited that the CPU has access to this cache too.

comment 13y ago · link · parent

>>maximizing murder has a choice between a quiet but effective means of killing people and a loud but ineffective one

Not really, it has nothing to do with being effective or loud, they go for the option that spreads the most terror... For example poison city water supply or send letter bomb. The flasher option here spreads less terror. The goal of a terrorist is to force political change though terror.

comment 13y ago · link · parent

>>Quibble: the terrorists don't want your life, they want your attention, and more specifically, your panicky attention.

Silly quibble- same difference, there are few things better for getting "panicky attention" than randomly taking lives or maiming people.

I agree with your other points.

comment 13y ago · link · parent

"We know there are people who want to take away our freedoms."

The terrorists want my life; its the government that wants my freedom. I'll keep my freedom, thank you, and take my chances with my life. My chance of being injured by terrorism is infinitesimal compared to the very real chance of losing civil rights and privacy I value.

As Patrick Henry said: "Give me Liberty, or Give me Death!"

comment 13y ago · link · parent

I think one persons "you think she'll be better at hiring women" is easily another persons "she'll be good at making sure women are not unfairly turned away".

>>It's a strategy. Yes it is. It is a strategy to avoid over looking awesome female candidates, intentionally or otherwise. Calling this a strategy is fair, calling is hypocrisy is not.

>>She's in there not because she's a great engineer, but because she is a woman who happens to be a great engineer.

No, she is there because she is a member of a group you think you may be discriminating against AND she is a member of the group you are seeking to hire for. Like you said it is a strategy.

You seem offended by what I think are very pragmatic ways to deal with the issue, care to suggest your alternatives? If you recall the OP is looking for legal ways to address the issue-

comment 13y ago · link · parent

"Doing that for the reasons you are suggesting is hypocritical."

I think that is your own projection; The OP already mentioned that his female engineer is an awesome engineer, so I'm assuming she is qualified to be there from an engineering perspective (and I'm not saying she needs to be the only engineer there). And the organization is looking for a check to make sure the hiring team is not discriminating against women, having a woman there hopefully should help. At a minimum it would prevent outright sexist remarks during the discussion of candidates as making them in her presence would reasonably constitute sexual harassment. Also not to be over looked, the presence of a successful female engineer from the hiring organization may also make female candidates more comfortable.

As for dedication, I mean dedication to not over looking awesome female candidates, intentionally or otherwise.

comment 13y ago · link · parent

How about you just keep hiring the best person for the job, but take care to be reflective and ensure you are fairly considering the female candidates... maybe make sure your female engineer is on the hiring committee?

Put another way, rather than trying to explicitly seek awesome female employees, just make sure the awesome female candidates don't slip through. I think execs often mistakenly think they can fix cultural issues by fiat, when what is really needed is dedication and time.

I think what constitutes imbalance also needs to be defined. If 10% of qualified engineering candidates are female does having 10% of your engineering staff be female constitute balance? I think the case could be made it does; however, in relation the birth ratio of our species is it certainly imbalance.

comment 13y ago · link · parent

The most likely cause is in the mysql driver. Go provides an interface for drivers to implement, similar to how JDBC does in Java. One of the go developers, Brad Fitzpatrick, commented [1] that the actual code used by the benchmark looks OK. The discussion of these test results on golang-nuts [1] triggered a number of performance related pull requests [2] to the mysql driver used.

Also of interest: https://code.google.com/p/go/issues/detail?id=5323

1: https://groups.google.com/forum/?fromgroups=#!topic/golang-n...

2: https://github.com/go-sql-driver/mysql/pull/52 https://github.com/go-sql-driver/mysql/pull/55

1
313233
40