3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions
comment 13y ago · link · parent
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
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
>>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
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
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
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
Go vs Haskell/Erlang has a similar showing in TechEmpower's Web Framework Benchmarks: http://www.techempower.com/benchmarks/
comment 13y ago · link · parent
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
comment 13y ago · link · parent
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
comment 13y ago · link · parent
comment 13y ago · link · parent
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
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/#SliceHeadercomment 13y ago · link · parent
>>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
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
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
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
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.