Better HN
topnewbestaskshowjobs
Log inSign up

rcoder

2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions

Submissions

comment 18y ago · link · parent

You may find systems monitoring to be a bit challenging in Haskell if you're accustomed to Perl. By design, the normal POSIX abstractions that are so tightly integrated into Perl are held at arm's length in Haskell, if available at all; something as simple as forking a child process or switching effective UIDs will require far more code in Haskell than in Perl.

That being said, if you want to be able to reason about system configuration states, and write concise deterministic rules that dictate the triggers for and transitions between between such states, Haskell may be worth some additional attention.

comment 18y ago · link · parent

Personally, I think there are some very interesting possibilities for using Haskell in the highly-secure web application space. The most trivial example would be simply using the type checker to protect against SQL injection and cross-site scripting attacks by representing user input with a different type than query parameters or HTML output.

I've also thought for a while that Haskell would be a great environment in which to implement a static analysis tool to check the security of existing application code. In particular, I think that the PHP community could really use an information-flow and type-checking tool external to the core runtime which could be used to run a quick "sanity check" over source code. The simplicity of the language (relative to, say, Ruby or Perl) makes it a prime target for parsing and analysis, and the large body of existing code in the wild makes for an interesting set of test cases.

comment 18y ago · link · parent

My X300 is, bar none, the best laptop I've ever used. Unlike the MacBook Pro or T-series laptops (my previous all-around faves), it doesn't attempt to be a desktop replacement, but it's worlds more capable as an all-around travel computer than the Air, due to the internal optical drive, onboard Ethernet, and numerous USB ports.

The 301 looks like a very minor, but worthwhile, upgrade.

Of course, the fact that the Air runs OS X, while the X300 runs Windows or Linux, will make the decision all by itself for most potential buyers. Personally, I find that the X300 running Ubuntu makes for a nearly ideal mobile development system.

comment 18y ago · link · parent

The moment where "MobileMe" became part of iTunes was precisely when they decided to make iTunes the gatekeeper all iPod and iPhone content. Want to use an iPhone on Windows? Them's the breaks.

Also, your "TENS of THOUSANDS" of people are a frigging drop in the bucket compared to the TENS of MILLIONS (or possibly even HUNDREDS) of Windows systems currently in deployment in countries where Apple distributes their products.

Don't people constantly defend Microsoft with the same argument -- namely, that they have no way to test every possible interaction between bad drivers and hardware components simply due to the sheer number and variety of Windows systems in use at any given time?

comment 18y ago · link · parent

iTunes is not just a music player. It is also a media store client, a CD/DVD-burning application, and a sync tool for the iPod & iPhone.

Why then should it be surprising to anyone that it installs background processes and drivers? Yes, malware authors use hidden background tasks, but so does everyone else. The technique itself is not evil.

Furthermore, blaming Apple for poor QA because some Windows systems crash when iTunes 8 is installed is ridiculous. Windows is an ecosystem, not an operating system, and there are far too many possible system configurations for Apple (or any other vendor) to test them all.

There are plenty of causes to call Apple evil (DRM, restrictive platform access, insane RAM pricing) or incompetent (MobileMe launch, iPhone 3G signal issues) but a buggy Windows experience isn't one of them.

comment 18y ago · link · parent

The Java protection model is in many ways less strict than the process isolation model exploited in Erlang. Giving each programmer responsibility for their pool of classes may sound like a good way to limit their ability to damage the rest of the system, but as long as anyone else is dependent on the stability of their API (and the absence of unchecked runtime exceptions), a single bad line of code can easily bring down an entire system.

Also, while it may technically be a "functional" language by virtue of disallowing destructive update of values, it really reads more like a scripting language. Variables are dynamically typed, and the functions only have an arity, not a signature.

Programmers used to the expressive type systems and polymorphism of more "academic" functional languages like ML or Haskell, on the other hand, would probably chafe at Erlang's lack of support for any abstractions other than forking and message-passing.

Real rocket scientists, on the other hand, would probably like Erlang, since the semantics of the language are simple, and its fault-tolerance and concurrency features could be well-suited for high-availability systems like mission data collection. (Its lack of hard real-time features make it a non-starter for actual avionics.)

comment 18y ago · link · parent

Caching is also very much not limited in usefulness to I/O-bound operations; a cache hit can save a great deal of CPU time, too, if you have difficult-to-compute values that are sufficiently static to be worth caching.

Even if your whole dataset fits into RAM, you may still have that one O(2^N) algorithm that doesn't need to be run for every request. Voila! A perfect application for caching.

comment 18y ago · link · parent

Now that relayd has SSL support, I'm going to have to look at using OpenBSD as a web load balancer again. Given how lean a stock OpenBSD box is, I suspect that a very modest server could keep pace with a mid-sized (10-20 node) webapp cluster without really breaking a sweat.

comment 18y ago · link · parent

I think his point was that individuals who aren't already wealthy have to make their decisions based on the odds of payout on that deal, while investors can simply engage in more deals, thereby reducing the "odds" to a simple payout multiplier.

comment 18y ago · link · parent

Seeing that cross-platform support really is in progress (albeit incomplete) and not just a hypothetical goal reassures me that Google is truly serious about seeing Chrome become a sustainable open-source project.

My initial fear upon hearing the release announcement was that this was intended exclusively as a salvo against IE8 on Windows, and that Google just wanted to further needle Microsoft. If they're willing to invest engineering resources in support for less-dominant platforms, it suggests very strongly that they really do want to drive the state of the art for browser implementations forward across the board.

comment 18y ago · link · parent

I think the take-away from this article isn't that you should absolutely use the 4-1/2 day workweek model at your firm; instead, I read it to say that they had experimented with several different schedules, put some serious thought into what worked and what didn't, and then implemented a solution which was tailored to their team, deployment schedule, and customer base.

If you want something which works as well in your business, don't just mindlessly clone this, or the 37signals 4-day week, or the first-stage startup 80-hour deathmarch, or any existing schedule -- work it out for your own environment.

Personally, I've been doing a lot of tweaking of my own schedule at work over the last year, and found that having at least one full day a week where work from home is a big booster to my productivity. It's an entire day where I can avoid random interruptions, and I never have that meeting in the middle of the morning that basically wastes the day through lunchtime.

comment 18y ago · link · parent

I'm curious why there aren't any platform partisans screaming "bloody murder" about Google's obvious flaunting of GUI tradition on this one. Putting tabs on top of the window titlebar may be the greatest UI innovation since tabs themselves, but it's going to make Chrome windows look and act differently from every other application on the user's computer.

That being said, a browser using WebKit + Gears + solic process sandbox model appeals to me a lot. Props to Google for explicitly referencing the Biba model, too -- if they can get web developers to start paying attention to the body of security theory published in the last 40 years, the browser itself could be a huge flop, and still leave us better off than we are currently.

comment 18y ago · link · parent

You coulda fooled me -- here I was, thinking the SSD in my ThinkPad X300 was actually pretty sweet, and provided huge performance wins for my real-world workloads, but I guess I was just getting sucked into early hype.

comment 18y ago · link · parent

This is a theme I'm hearing from a number of directions these days: namely, that Rails has (deservedly) attracted a lot of attention for web development, and tempted a lot of people from the PHP and Java camps into doing Ruby, but hasn't produced nearly as large a crop of expert Ruby developers as one might hope.

The basic fact is that a year or two of Rails development experience doesn't make you a good architect, systems programmer, or database administrator. Good back-end engineers are much rarer, and should command a premium, if only because such knowledge really does only come from years of hard-earned experience.

comment 18y ago · link · parent

To my mind, the main value of writing good units test isn't that it makes your implementation better at the beginning of a project. Rather, they make it possible to quickly iterate through alternative implementations and verify their correctness, or reject them if incorrect.

Regardless, Tim does have a robust test suite for mod_atom -- the Atom Protocol Exerciser (APE), which he wrote long before starting work on his own implementation. It serves as a reference test client for any AtomPub service, which is rather more valuable IMHO than simple unit testing.

comment 18y ago · link · parent

I mirror all my code and projects between my home and work systems, so the layout is vaguely like this:

  ~/Projects/
    /work/
      /account-tools/
      /courseware/
      /system-mgmt/
    /personal/
      /blog/
      /throwaway/
    /org/
      /fundraising/
      /public-site/
(etc., etc.)

The meaning of the 'work' and 'personal' directories should be apparent, and 'org' is for non-profit volunteer work.

Each project is under some sort of version control, but it could be CVS, Subversion, or Git, depending on how many years ago I last worked on it.

comment 18y ago · link · parent

Counter-counter: Podcast Producer is a Rails app. I think Apple is just letting their employees pick their tools (at least for server apps) as they see best, rather than arbitrarily enforcing the choice of a single language.

comment 18y ago · link · parent

I don't think you read closely enough: they define the failure rate as describing the likelihood of complete loss of the volume, not minor data corruption.

Unless you're mirroring your data across multiple drives, there is no way ZFS can magically recreate a volume that simply ceases to exist. Think of it this way: how would ZFS help you in your own server room if a non-mirrored disk caught fire and melted? Answer: it wouldn't. You'd go to backups, like you would with any other filesystem.

comment 18y ago · link · parent

Network effects are huge, and especially tough to overcome when the price of listings on Craigslist is so low, but I think there's another effect at work: namely, their minimalism actually makes the site more useful for their users than a more structured listing model would be.

By storing only very minimal posting metadata, and eschewing an API that would allow mash-ups and alternate browsing interfaces, Craigslist offers the same (often overlooked) advantage that old-school classified ads do: namely, they more or less force people to read a lot of the ads in order to have any chance of finding something.

That's better for sellers, because it increases the chances their ad will be seen, and in many cases it benefits buyers, too, since they may stumble across ads that would never have shown up in a more sophisticated search result set.

comment 18y ago · link · parent

Pretty much every desktop virtualization package supports setting up shared folders to facilitation moving files between the host and guest OS. I know for a fact that VMWare Fusion on OS X does this, though the preference tab to enable it did take a little bit of searching to find.

That being said, if your goal is to develop in an environment more like your production system(s), you're going to need to work out your automated deployment model sooner than later, anyway. You may as well do it locally, where the cost of a screw-up deployment is effectively nil.

comment 18y ago · link · parent

> I wouldn't be so sure about that.

Umm, I would. Running Wireshark or tcpdump to sniff traffic over the wire is easy, and analysis can be done offline at the attacker's leisure.

Hijacking DNS and phsishing for users' login credentials to other sites requires a lot more preparation, and in most cases, prior selection of the desired target sites.

comment 18y ago · link · parent

Shoes is a GUI framework. It just handles drawing widgets (buttons, text boxes, video player frames, etc.) on screen. Think of it as a equivalent to a web browser, with a single language (Ruby) used to define content, layout, and behavior, instead of the mish-mash that is HTML, CSS, and Javascript.

True, once you break out into the "big bad world" of network protocols and disk I/O, your code may not be quite as dead simple, but it really shouldn't be too hard for most folks to jump from this:

  Shoes.app do
    button "PUSH!"
  end
...to this:

  Shoes.app do
    stack do
      @text = para("hostnames go here...")
      button("PUSH!") { @text.replace(File.read("/etc/hosts")) }
    end
  end
...and from there to this:

  Shoes.setup do
    gem 'simple-rss'
  end
  
  require 'simple-rss'
  require 'open-uri'
  
  Shoes.app do
    stack do
      banner "News.YC Headlines"
  
      button("Fetch") do
        @articles.clear
        
        rss = SimpleRSS.parse(open("http://news.ycombinator.com/rss").read)
        
        rss.items.each do |item|
          @articles.append { para(item.title) }
        end
      end
      
      @articles = stack
    end
  end
That isn't so bad, is it?

comment 18y ago · link · parent

Shoes code is Ruby code. The name of the binary may be different, and shoes bundles a different standard library, but you can still access any Ruby libraries you like from your Shoes app.

That doesn't make it a "level editor for [a] game engine", but it certainly should give you more than enough tools to build a networked tic-tac-toe game.

comment 18y ago · link · parent

I think that Rails controllers do tend to be pretty "fluffy" -- in fact, I would basically call them "view adapters." Replacing them entirely with a Sinatra-style routing and dispatch model would be a fine approach.

However, that still leaves a gap between the page-to-page flow control and transactional logic, which is an area where Rails just doesn't have much help to offer. Having to flatten my entire transaction state into a session hash, which is then (by default) squeezed into a 4Kb cookie, is constraining.

Why not let me instantiate a controller for a particular transaction on the site and control its lifecycle, ala Stateful Session Beans?

comment 18y ago · link · parent

It's not really a Catch-22; if you can't sell your idea well enough to get a coder interested in being your cofounder, then the fault lies in either your idea or your pitch, not in some insurmountable market force.

There are a lot of talented developers out there who haven't come up with a billion-dollar idea of their own yet, and who would be happy to hitch on to someone else's if they're getting a fair piece of the action.

However, if you're trying to convince them to do work for hire (i.e., give up any rights to their own work) at far less than market rate with some vague promise of more compensation later, you deserve to fail. The developers who will fall for that argument are going to be inexperienced and/or just plain incompetent; the rock stars (who you really want to work with) know the value of their work, and are unlikely to jump on a bad deal.

comment 18y ago · link · parent

I have a BlackBerry Curve on T-Mobile, and generally think it's the best mobile email client I've ever used. There are a decent number of downloadable apps, and OTA J2ME provisioning is actually pretty awesome. In terms of "hackability", it's tough to find anything better than a full-featured, reasonably-fast Java stack, since you can do development and deployment from your choice of platforms and hosting providers.

However, the Curve firmware (at least at OS version 4.3) has two major flaws. First, it's intermittently crash-prone and slow when using 3rd-party applications. Second, it locks up after a few minutes and has to be hard-rebooted when I try to use it as a Bluetooth modem for my Mac, which is especially annoying since a full restart takes more than five minutes.

Regardless, I still think I made the right choice in selecting the Curve over an iPhone, for one simple reason: UMA. Being able to pay $20/mo. for unlimited calling over any WiFi network has already paid for itself many times over when I've been outside the US (or even in rural parts of the US) and avoided having to pay roaming fees.

comment 18y ago · link · parent

  you need to put some thought into the engineering process 
  behind it, and that includes putting some forethought into 
  how you're going to handle security problems
Again, the ruby-core crew aren't thoughtless, or inexperienced; they have processes in place for both normal releases and security advisories, and have a pretty damn good track record for getting updates into the hands of the folks who need 'em.

There are now far too many versions of Ruby out there in the wild for the core team to effectively predict who is going to be affected by a particular issue. Every Linux distro and release of OS X has a slightly different bundled Ruby runtime, and most people don't seem to bother tracking the stable release from the core team until something like the last round of security updates leaves them scrambling to keep up.

The problem isn't the core team failing to handle security issues, it's the community not giving a shit about the code that makes up the 'ruby' binary until something goes wrong, and then not having any clue how to update their systems and do basic compatibility testing.

comment 18y ago · link · parent

Accusing the ruby-core folks of a lack of candor in their handling of the previous round of vulnerabilities isn't really fair. Once the issues were effectively documented and explained, they released updated versions of Ruby 1.8.6 and 1.8.7 quite quickly.

The problem was simple that the core team doesn't use Rails, so they didn't test the patches they produced with non-trivial Rails apps. When other people did that testing, they got segfaults, freaked out, and basically tried to tell the core team that their release process was shit, and that they should let a bunch of outsiders tell them how to manage their releases.

Personally, I was embarrassed to be part of the English-speaking Ruby community during that entire episode.

comment 18y ago · link · parent

Another vote for the ThinkPads. X60-series models are dirt cheap right now, and pretty much impossible to beat on the combo of cost, performance, portability, and ruggedness.

My recent-model MacBook Pro has a wonderful display panel, good discrete GPU, and a decent-enough keyboard, but it's big, heavy, throws off tons of heat, and lasts at best four hours on a battery. My old ThinkPad X41, on the other hand, despite being almost five years old, beats it in basically every category other than screen size/brightness and raw CPU/GPU power.

T-series units are even sturdier and definitely keep up in CPU/GPU specs, but there's just something about a 3-pound laptop that pretty much removes the excuse to not have it with you all the time. (That may or may not be a good thing for your lifestyle, of course.)

comment 18y ago · link · parent

I haven't had to deal much with IE in the last couple of years, but when I did, the only sane way I found to debug JS code was to have Visual Studio installed, and to use the VS debugger to hook into JS code.
1
141516
19