5 ms·
Intro to (images in) Go
- jozan 13y agoThe website is not responding.
- pheelicks 13y agoSorry, the heavy load seems to be too much for my server. Cached version: http://webcache.googleusercontent.com/search?q=cache:x5ppI0TCjz4J:www.pheelicks.com/2013/10/intro-to-images-in-go-part-1/+&cd=1&hl=en&ct=clnk http://webcache.googleusercontent.com/search?q=cache:x5ppI0T...
- zytek 13y agoHow large is the "HN effects" that it brings so many sites down? Even those hosted on 'professional web hosting' and not on home computers? Anybody has some stats?
- corresation 13y agoThe HN effect isn't that big. Quadruply so in this case as it's making the front page during the dead hours of HN, with but 18 upvotes and a couple of comments. This site fell over with minimal attention. I'm a broken record on this, but people should not blame Wordpress for the continual pattern of poorly configured Wordpress instances, as the platform is built to have a caching plugin of one sort of another: I have Wordpress instances that serve enormous loads without breaking a sweat (even on AWS micro instances), all courtesy of absolutely rudimentary functionality of W3TC. Seriously, when you submit your own stuff there should be a checkbox acknowledging that you have basic caching in place.
- GhotiFish 13y agoIf it's avoidable (and on very static type pages like this, it should be) then yah. Keep in mind that what seems easy to you may be wildly new territory for others. Just because you're technical doesn't mean you know the ins and outs of running a server.
- vanderZwan 13y agoPsst, here's the playground port of your code: http://play.golang.org/p/Fl6tesaI1Z http://play.golang.org/p/Fl6tesaI1Z ... don't make the image dimensions too big, I doubt the Gophers on the server would appreciate that.
- gamegoblin 13y agoAt a hackathon about 6 months ago I decided to write a seam carver [0] in Go. I had no previous Go experience (not even "hello world"), so it was entirely new to me. Not only did I find the language a pleasure to use, but I was supremely impressed by the standard library and its heavy support for image manipulation. [0] http://en.wikipedia.org/wiki/Seam_carving http://en.wikipedia.org/wiki/Seam_carving
- pheelicks 13y agoThat was my impression as well. Have you published your seam carver anywhere?
- gamegoblin 13y agoNo, and I'm currently travelling and it's on another machine than the one I have with me. That being said, I may take some time on one of my following flights to rewrite it. I wasn't too proud of the first iteration, anyway (being my first foray into Go).
- petercooper 13y agoWould you say Go is an ideal language for potentially creating high performance graphical manipulation plugins? (Say, for Photoshop or similar.)
- gamegoblin 13y agoI wouldn't say it's that much better than alternatives. I find it quite a bit better designed than C++ or the like, but if you're very comfortable with C++ or something, I think it'd probably be equally easy to code things like graphical plugins in either language.
- pjmlp 13y agoCurrently not in a developer friendly way, given the Go designers stance against dynamic linking. Not sure if 6g/8g compilers will ever support it. So you need to communicate with the plugins via shared memory when doing IPC that requires performance.
- ravich2_7183 13y agoMy first impression is that nd-array/matrix manipulation sucks big time in golang, compared to matlab or python/numpy. I'll go further and say it sucks even compared to C++ and vanilla C.
- cmccabe 13y agoMy first impression is that you don't know how to use the Google. https://groups.google.com/forum/#!topic/golang-nuts/Cl_D7PIiCns https://groups.google.com/forum/#!topic/golang-nuts/Cl_D7PIi...
- Patrick_Devine 13y agoI've been thinking about playing around with Go as a platform for writing some simple video games. I saw the Go-SDL bindings on github, but I have no idea if they're any good. It looks like no one has worked on them for a couple of years. Is anyone using them, or other similar sprite libraries with Go?