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

Wow- That is great. Thanks for sharing!

comment 13y ago · link · parent

>>Maybe I'm not part of the target audience for this article, but it seems to lack quite a bit of information.

I think for anyone with minimal assembly experience or a desire to learn this is pretty straight forward.

>>For example, you explain what op-codes are, but then only cover one of them.

He gives you a link to the list of all of the op codes... Did you read it?

>>I think at least a basic overview of common op-codes and how they work together would have been great

Maybe this is going to be in a follow up article. But after explaining the concept, giving you toy example and giving you the opcode list, with the provided hexdump you should be able to start doing this yourself. Try it! Its fun.

>>Also, the "hacking" you demonstrate is simply replacing a string, which is certainly not Java-specific and rarely useful

Intro to concept examples are often toy examples....

comment 13y ago · link · parent

>>We have weird weather but May is definitely spring

Yeah, it snowed here for a moment on Saturday, but Tuesday it hit 89F. :)

>>Once May starts we're basically a few weeks from god awful summer heat like anywhere else.

With exceptions of course, like last year where the snow was gone by mid March and I went camping on St. Patties day- in shorts and a T-shirt... :) and was bit my mosquitoes :(

comment 13y ago · link · parent

Nit, geography lesson needed:

>>Of course, if you're in the southern hemisphere, it's not spring for you. Nor if you live in the north Midwest of the US or central Canada. Sorry about that; we just track the weather with PostgreSQL, we don't control it.

I live in the north Midwest (Wisconsin) and it is currently 72F (should hit 80 today) and sunny, with birds chirping outside- I'm pretty sure it is spring- which started Wednesday, March 20 regardless of it being cold as hell here at the time.

I think some native Californians have trouble with the idea it can be under -15F in February and over 100F in August in some places.

comment 13y ago · link · parent

Downvote? If you think this is inaccurate, respond, don't downvote.

comment 13y ago · link · parent

>>Go vs Haskell/Erlang has a similar showing in TechEmpower's Web Framework Benchmarks

As in similar to the above benchmark, as in spanked by Go in Erlang's case.

comment 13y ago · link · parent

>>Haskell is pretty much the counter example.

I said "very often" for this reason, there is always an exception to the rule. I do love Haskell too.

>>This is why I am far more exited by Rust than by Go, it promises to deliver performance and safety in an imperative language.

To be clear we were talking about concurrency safety, not type and memory safety; Go is type and memory safe. If an organization using Go chose to tell programmers they could not send pointers between goroutines or share global state, Go would be just as communication safe as Rust. Just in Go, this communication safety is optional.

comment 13y ago · link · parent

Its worth pointing out that in Go something like a channel read can also be non-blocking. As can placing a value on a channel be.

comment 13y ago · link · parent

>>I didn't say anything about performance, and that's because I don't think performance has much to do with it.

Sure but that is why I brought it up. Performance and safety are very often two sides to the same tradeoff. You were saying you thought the concurrency of Erlang was safer, and I was proposing that depending on the problem domain, a little risk can be worth the performance gain. That being said, I think Go makes concurrency easy to get right (much less risky than say C/C++), it just doesn't ensure correctness.

>>...Go is still an Algol-esque language. That's a legitimate advantage. I've paid the price of learning the alternate paradigms, but I would generally recommend Go to a larger corporate deployment before I'd recommend trying to convince a couple dozen people to learn Erlang.

Wise man :)

comment 13y ago · link · parent

>>So, what are the problems you are trying to solve? And why can Go solve them better than, Java, Erlang, C++, Scala, or any other language?

Compared to X, Go has Y:

Java: Less verbose, faster builds, native code (no JVM needed), cleaner OO, structural typing, better memory usage, structural typing, more convenient concurrency

Erlang: Better performance, better memory use, cleaner syntax, easier to train people on/hire for, statically typed

C++: Type and memory safety, much simpler syntax, better build times, large standard library, structural typing, garbage collection, easy and safe concurrency

etc, etc

comment 13y ago · link · parent

Doesn't some of this depend on the performance needs of your application. Go appears to be faster and use less memory the Erlang in this popular microbenchmark: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

Go vs Haskell/Erlang has a similar showing in TechEmpower's Web Framework Benchmarks: http://www.techempower.com/benchmarks/

comment 13y ago · link · parent

>>kiss on the cheek

Interesting I don't think that I have ever seen that except on TV/movies. (Outside of grandparents and grandchildren)

I've always thought of hugs involving males as reserved for family and close female friends (or your girl friend/wife’s close female friends). Hug in a business setting.. never!

I've also thought handshakes should be as medium strength as possible.

I live in the U.S. Great Lakes region/Midwest.

comment 13y ago · link · parent

They obviously didn't snapshot their dependencies into a git repo they shared, you meant they cloned them locally, which is not what I meant at all.

comment 13y ago · link · parent

That is interesting- My masters program in Software Engineering was not like this. I remember a guy with an electrical engineering BS complaining he had like 16-18 remedial C-S credits to take before he could enter the MSE program.

comment 13y ago · link · parent

Nope, not stopping you: http://blog.burntsushi.net/type-parametric-functions-golang

comment 13y ago · link · parent

I would worry about the legitimacy of any MS in CS program that did not make someone without a CS undergrad degree take significant remedial coursework.

comment 13y ago · link · parent

>>the Go answer to version control of dependencies seems to be "clone the head of the master branch of a Github repo"

Yes and it is only the fault of these devs that they did not do that. One of the first things I did when starting a job programming Go full time was go- woah, we need to clone our dependencies so we can manage upgrades. It was just common sense and easy.

comment 13y ago · link · parent

http://www.nosupportlinuxhosting.com/

comment 13y ago · link · parent

You might find this interesting: http://blog.burntsushi.net/type-parametric-functions-golang

comment 13y ago · link · parent

For now, if this continues to narrow it will not be true much longer: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

comment 13y ago · link · parent

Except that if you are passed something like a slice and you modify the length, that change is not reflected to others like it would be with a reference. See my above code example.

comment 13y ago · link · parent

>>For practical purposes, I think they're better off to think of it as a reference.

No, they should learn to understand what is actually happening. Otherwise things, at best, do not make sense and, at worst, can lead to bugs when using functions like append(): http://play.golang.org/p/eTJXu6XMNJ

comment 13y ago · link · parent

There are no reference types in Go, everything in Go is passed by value.

When you pass a slice, for example, you are passing a structure that has a pointer to the underlying data by value; you could think of it as a reference BUT its not what you think it is. What you are passing around is actually a struct that is passed by value:

  type SliceHeader struct { //[1]
      Data uintptr
      Len  int
      Cap  int
   }
1: http://golang.org/pkg/reflect/#SliceHeader

comment 13y ago · link · parent

I think Generics are just low priority for the Go team. Maybe we will see them in Go 2.0

>>tons of languages have implemented Generics -- it's not rocket science since at least 2 decades.

Sure, but that doesn't mean there are not concerns about the way it is often implemented: http://research.swtch.com/generic

comment 13y ago · link · parent

Or maybe professor speak for freshmen Johnny who thinks he as an answer to the the Halting problem...

But in all seriousness they are interested in implementing generics, just not in a hurry to do it. It doesn't seem unreasonable to me to label it a low priority feature compared to other things they have added to Go. Java got along just fine before generics (which are arguably poor) and C still gets along fine without them. The Go authors are saying, lets add Generics when we are all happy about the solution and feel we are going to get it "right".

comment 13y ago · link · parent

>>improving its community

You must read different mailing lists, G+ groups and IRC channels than I do...

>>and its aesthetic culture.

ROFL, what? How do you feel about the "aesthetic culture" of C programmers? Because you know- thats not a very popular language or anything...

comment 13y ago · link · parent

Many of the people in the Go community are anti-framework and pro-library. (inversion of control; a library is provided code called by your code, versus a Framework provided code that calls your code).

That being said, right now the dominate Go web library is "net/http" from the Go standard library, supplemented by Gorilla (as needed): http://www.gorillatoolkit.org/

If what you are looking for is really a Go web framework however, there are a few in development including Revel: http://robfig.github.io/revel/

comment 13y ago · link · parent

>>How much do I need to know about pointers to use and learn Go?

Do you understand how they work in C? Maybe try reading a little about that. For Go, I'd recommend starting here: http://tour.golang.org/#1 (Don't miss the next arrow in the lower right-)

After running through that you should have an idea of what you don't know- which makes asking questions people can provide useful answers to much easier. :)

>>Is Go garbage collected in the C#/Ruby sense?

I'm not sure what your sense of C#/Ruby GC is, but I'd go with yes.

comment 13y ago · link · parent

haha, thanks :)

comment 13y ago · link · parent

Yeah, who needs type and memory safety, a large standard library, OO via interfaces, structural typing, garbage collection, functions as first class citizens, closures, blisteringly fast build times or easy concurrency.....
1
282930
40