News for hackers. Stuff that matters.

gthank

Re:Rust for Python Programmers on Wednesday May 27, 2015 @09:14AM (#9611068)
Python 2 will store Unicode as either UCS-16 or UCS-32, depending on how it was compiled. The horrible monstrosity that is the default "string" (those are scare quotes; I know how the formatting on here works) in Python 2 is not Unicode, so it obviously doesn't use UCS-16 or UCS-32.
Re:Rust for Python Programmers on Wednesday May 27, 2015 @08:48AM (#9610946)
TL;DR Write it in Rust, export via FFI, bind from Python via cffi.

The long version is: go watch this video from PyCon that will answer this question and probably others https://www.youtube.com/watch?v=3CwJ0MH-4MA

Re:The sad state of sysadmin in the age of containers on Wednesday April 22, 2015 @09:28AM (#9420206)
Somebody has to build the containers and/or images, and it's on them to make that an automated, repeatable process.
Re:Announcing Rust 1.0 Alpha on Friday January 09, 2015 @04:12PM (#8864546)
Please tell me those discussions are on the mailing list.
Re:PostgreSQL 9.4 Released on Thursday December 18, 2014 @01:50PM (#8768934)
If you honestly believe that all you have to do is stand up a bunch of instances of Mongo/Cassandra/whatever and you instantly get acceptable HA, then you need to read the [Jepsen series](https://aphyr.com/tags/jepsen)
Re:The Future of Markdown on Friday October 26, 2012 @02:34PM (#4703545)
Having used them both a fair bit (though not to write novels, like some of the people on here): Markdown source is prettier to look at. This might seem minor, but it's the primary goal of Markdown. If I'm writing something highly technical, I prefer RST; if I'm writing something closer to plain English, I prefer Markdown.
Re:Seven habits of effective text editing on Friday October 12, 2012 @01:33PM (#4646026)
I use Eclipse (now that I no longer have an IntelliJ license) for doing heavy-duty Java, but if I can get away with it, I prefer to do things in MacVim. Eclipse is just too clunky feeling when I want to do simple text editing tasks; it totally throws me out of my flow. That's why I'm on HN right now, as a matter of fact. So clearly, I am not an unbiased observer. That said: have you tried Pathogen/Vundle? Vim plugin management these days is light-years better than the equivalent Eclipse nightmare (I've given up on about half my Eclipse plugins as things constantly break).
Re:The new Secure Password Hashing API in PHP 5.5 on Saturday September 15, 2012 @03:27PM (#4527021)
It's PHP. They obviously wanted a broken language. Now the devs are taking that away from them.
Re:Distrusting git on Saturday October 01, 2011 @03:27PM (#3060874)
I'm pretty sure it hoses Norton's "security" software, too. Of course, if you can't handle documented file system options, I don't trust you to detect exploits….
Re:GitHub Flow on Wednesday August 31, 2011 @03:28PM (#2947150)
Jenkins.
Re:Crustache is a fast C implementation of Mustache on Monday August 29, 2011 @04:11PM (#2938690)
For a lot of dynamic languages, at least, the templating engine is a surprisingly large portion of your page load times. I wish I could bring up the breakdown I saw a while back, but it's certainly non-trivial in many cases.
Re:LED, CFL and Incandescent bulbs side by side on Monday August 08, 2011 @12:03PM (#2860515)
Less than a year? That's really short. Have you tried busting out a multimeter on your wiring (since you sound like the DIY type) or calling an electrician?
Re:Emacs violates GPL since 2009 on Friday July 29, 2011 @07:24AM (#2821222)
The post clearly says they have to add the source or delete them.
Re:Groupon is Effectively Insolvent on Friday June 03, 2011 @03:21PM (#2617642)
You won't see me saying that I think Groupon is a great value or anything, but I think that you have to acknowledge the difference between the people Groupon is reaching and the people FB or Google is reaching: Groupon's audience is people who are actively looking to spend money, whereas most of the people who see Google or FBs ads are doing something else entirely (and would probably not notice if they just went away).
These articles are cropping up because Google (quite cleverly) utilized the "We're Open" mantra to gain a lot of momentum very quickly. Since the evolution of Android shows more and more evidence of "We're Open When Convenient/Beneficial", a lot of their most ardent supporters now feel betrayed/played.

If Google had said "We're not as secretive as Apple", there would be less bitterness now, but there also never would have been the sort of momentum/buzz they built early on.

Re:Programming Language Framework Traction on Hacker News on Friday March 25, 2011 @07:55AM (#2368103)
A lot of Spring code predates the rising popularity of "convention over configuration" (thank you, Rails, for getting this so widely accepted), so if you're in one of those code bases, you're going to see a LOT of the Java+XML verbosity that led to everyone lampooning Java.

In exchange, you get a ton of flexibility. You probably only need 5-10% of it, but that 5-10% is NICE. The ability to do clean testing of your data tier, for instance, is glorious when you first experience it. Goodbye, horrible ResultSet mocks!

If you're lucky enough to work on a codebase that fully embraces autowiring and all the spiffy new annotations, then you get all this awesome stuff, but with virtually none of the crazy XML configuration stuff that makes it impossible to just trace the source and figure out what the hell is going on.

For Java web frameworks, Play! http://www.playframework.org/ is definitely on the top of my list for green-field projects. I've only used it on small things so far, but it really seems to have learned the lessons of Django and Rails.

https://github.com/weavejester/compojure is on my To-Try list for Clojure stuff. Until I get around to it, I'm just monitoring buzz on the web, but so far it's been mostly positive.

Because it means you're (probably) going to be running Windows on your servers, which isn't cheap.
Re:In AT&T & T-Mobile Merger, Everybody Loses on Sunday March 20, 2011 @08:24PM (#2347867)
I'd settle for them managing to bill me properly for my POTS line after no more than 3 tries (it took 6 after my most recent move).
Re:When you want to quit because it's just not worth it on Monday February 28, 2011 @02:40PM (#2272533)
That's an interesting point about it never making the price go up. If there were a non-trivial chance that it caused the price to go up, do you think the haggling would be less common?

Since haggling vaguely offends my sense of how the world should work—even though I know that has no bearing on how it does work—it kinds gives me the warm fuzzies to imagine some random procurement person's expression as the price goes up every time s?he asks for a discount.

Re:The Azul Garbage Collector on Thursday February 24, 2011 @11:26AM (#2258577)
Azul's systems are pretty much the definition of high-volume. Nobody (sane) buys an embarrassingly parallel machine with custom hardware and software just to host their blog on it.

Older »