2,116 karma · joined Aug 14, 2007 (19y ago) · 566 submissions
comment 18y ago · link · parent
> What is the advantage of "network I/O" over I/O? It seems to me that file copying is best left below the OS.
Basically, DRBD gives you RAID-like replication of data across multiple physical hosts. This makes deployment of high-availability services stupidly easy, if sometimes less efficient than applicaiton-level replication protocols.
For mail spools, NFS shares, or other simple file-based systems, though, it works pretty well.
comment 18y ago · link · parent
It's real use is in building high-availability services -- since the "mirrored" disks aren't in the same box, you can have an up-to-the-second copy of the data there. The two systems don't even have to be in the rack next to each other, which is a tough trick to pull off with normal hardware RAID.
As I said in my other comment, though, it is a lot slower than native disk writes.
comment 18y ago · link · parent
It worked pretty well, but the write speed was probably about 1/4 to 1/5 that of a local database. We've sense moved to log-shipping as a replication model.
We do still use DRBD for some replicated NFS shares, and it's proven to be pretty trouble-free. (Knock on wood.)
comment 18y ago · link · parent
The reasons to move away from low-level machine code and towards high-level languages like Java are numerous (safety, portability, programmer productivity), while the advantages of writing raw assembler basically boil down to two: low-level machine access and performance. The former is only useful to a small number of applications, and the latter is mostly covered by Moore's Law.
SQL, on the other hand, is not itself a low-level language. It has powerful, declarative constructs for efficiently dealing with large datasets, and modern database engines already serve as high-level runtime environments abstracting away the mundane details of page faults, index maintenance, and caching.
comment 18y ago · link · parent
Thanks, but no thanks.
It sounds to me like you simply don't have the resources you need to develop your system, and want to get a bunch of free labor from the OSS community without really opening your code.
If you're going to go open source, you're still going to need folks to do documentation, QA, and marketing. You're still going to have to plan and manage releases. Hell, you're going to have to fight an uphill battle convincing some managers they should pay you for anything when the base product is "free."
Plus, you're going to have a community just itching to fork your product and put you out of business at the first sign of you putting your bottom line ahead of their interests.
Do yourself a favor, and either scale back the scope of your project so it's something you can handle, or find the resources to staff up and finish the damn thing. Then decide if you want to open source the code base. Just don't expect something for nothing.
comment 18y ago · link · parent
A client certificate is a statement of trust for a particular machine, not a user. They can be very useful when you want to do the equivalent of IP-address restrictions for access to a service, but want to support mobile systems and/or need stronger guarantees than simple IP checking provides.
The biggest problem with client certs, in addition to the "multiple users sharing a machine account" gotcha mentioned in the article's comments, is that there is no "logout" mechanism. I can't let someone else use my machine without logging out of the local account and in to another guest account, because the cert is always going to be presented.
comment 18y ago · link · parent
That being said, neither a UPS Store box or a residential address is exactly going to impress folks if they bother to check out your business address before decided to ink a deal with you.
comment 18y ago · link · parent
I'm not saying that private schools make sense a strict cost/benefit level; if you read my other posts in this thread, you'll see that I'm nearly as dubious as the author of the original article about the real economic benefits of a four-year degree. I just don't think that $200k is an unusually high total cost for four years of college.
comment 18y ago · link · parent
If you subtract a base tuition of $35,000 from that, you're left with $15,000 per year as total living expenses. That's barely over $1200, and has to cover not only rent and food, but textbooks, computers, and other costs of campus life. Even assuming your kid doesn't do much partying, or need access to a car, $15k is hardly a lavish annual budget.
comment 18y ago · link · parent
The suggestions to encourage your kid to practice one skill, or start a business, are spot-on, at least from an economic POV. Learning a trade and having some business experience are much more effective at increasing your future potential earnings than a liberal arts education.
Personally, I dropped out after my freshman year to go work for a startup I've had a great time working in IT since then, and consistently out-earned my friends who stayed in school, even now that they've had 4-6 years in the workforce to catch up on experience.
That being said, I think that there is still a strong argument to be made for people eventually attending college. I still look forward to college as something I'll do in the future as a sort of "working vacation." I.e., just like faculty take a sabbatical to focus on their research, or spend time with their family, I hope to take a couple of years off to devote myself to intense, full-time study of some subject other than computers.
comment 18y ago · link · parent
If I had cable, I'd probably watch it, but that seems like as good a reason as any not to get it.
comment 18y ago · link · parent
True, there aren't the same number of overnight paper millionaires being minted as in SF or NY, but you can still house and feed a family on 60K a year.
We've got an up-and-coming restaurant scene, and some of the best beer in the country, too. I find it a pretty nice mix.
It does rain a lot. I'm usually too busy coding, cooking, or biking through traffic to care, though.
comment 18y ago · link · parent
Try to spend at least an hour a day interacting with people you don't see every other day. (I.e., not a live-in significant other or a business partner.)
comment 18y ago · link · parent
After taking some more classes part-time, I've probably got about 1/2 the requirements for a degree in mathematics from a couple of different schools, but never seem to find the time to go back full-time and finish it out.
I do work at the college I dropped out of all those years, ago, though.
comment 18y ago · link · parent
Revealing the market niche you hope to fill isn't revealing your secret weapon -- not in the Viaweb/Lisp sense, anyway -- it's giving away free copies of your business plan.
comment 18y ago · link · parent
The things that turn a technically-competent team into a bunch of ass-kicking code-ninjas are good tools, a nimble process (not necessarily XP or "agile programming"), and deep knowledge of the problem domain. None of those are particularly dependent on secrecy, and in this day and age, there's a strong argument to be made for the marketing, recruitment, and simple bogofilter potential of transparency and peer-review.
comment 18y ago · link · parent
If you're just using Facebook as a quick marketing plug to get folks interested in your service, that's one thing. Otherwise, you might want to talk to a lawyer and get them to explain FERPA to you, and check your business for compliance.
I work in IT at a small college, and at least as far as we've been told, no college can allow enrollment records to become visible to anyone not enrolled in or teaching a class. That means that even displaying the current course load for a student is considered a privacy breech for which the college is liable.
Of course, there's also the fact that purchasing decisions at most schools are made on 6-10 year schedules. No responsible administrator is going to gamble on putting key academic resources into a system as new and unproven as Facebook. FB (and the whole FB app ecosystem) have a long way to go to convince anyone that they're in it for the long haul.
comment 18y ago · link · parent
Secondly, many organizations are understandably nervous with hosting core academic resources off-campus. That attitude may shift over the coming years as outsourcing of other systems such as student email becomes more common, but in the meantime, most IT staff in higher education still get squeamish about letting some 3rd party become solely responsible for managing such critical systems. That breaks the usual web startup model of being able to host the app, and forces you to do support for on-site installs.
comment 18y ago · link · parent
1. Recursion and cons cells naturally complement one another. They can stand in for n-ary tuples, vectors, and arrays reasonably well for small values of n, and when your dataset gets large, well, you switch to a more efficient data structure. Hell, with Arc you even get 'push' and 'pop' as built-in functions. What exactly is the problem?
2. Again, I don't see how this is a problem. Macros are compile-time rewriting rules. In an eagerly-evaluated language like Lisp, they are pretty much a necessary evil to prevent unnecessary side-effects while still allowing for flexible syntax. I can imagine doing without them in a lazy language like Haskell, but I'm not aware of any popular, lazy languages in the Lisp family.
That being said, I'm interested to know if you've working with other languages where #1 and #2 aren't a problem.
comment 18y ago · link · parent
HyperCard suffered from a few obvious problems for larger-scale programming. First, it lacked any support for meaningful code structure and re-use. You didn't so much have functions or procedures so much as you had GOTO statements pointing between cards. For simple logic, that may be fine, but for more complicated workflow, the 1:1 mapping between cards and code blocks, and lack of shared state between them, means that non-trivial apps quickly became a mess of HyperTalk and hackish extensions written in C.
Also, it was tightly tied to a number of MacOS platform technologies; at a minimum, building a full clone of HyperCard would have required re-implementing some analogue to QuickDraw, including (IIRC) some undocumented hooks that the engineers at Apple used into the underlying system.
In the end, though, what probably killed HyperCard more than anything else was the rise of the web browser. Many of the basic operations of a HyperCard stack -- linking between discrete pages of data, providing simple interactive widgets and multimedia, and supporting complex layout of text and images -- are extremely well-supported by graphical web browsers, and the fact that resources are stored on the network mean that you don't have to pass around stacks on disk like you did in the HyperCard days.
That being said, there have been periodic efforts to fill the same niche, without continuing to enforce the more baroque limitations that HyperCard had. PythonCard was a very interesting project, but seems to be pretty much dead at this point.
The [Shoes](http://code.whytheluckystiff.net/shoes/) project seems to be a good bit more active at this point. It's still at a pretty early stage in terms of API stability, but _why is one of the more tenacious programmers out there, and the community that has already sprung up around it is impressive.
comment 18y ago · link · parent
That being said, I've found that even 8-10 hours of steady typing can be too much for me, unless I'm using an ergonomic keyboard and good office furniture. If you can find any model of keyboard at all that works for you, buy it. Ditto for wrist rests, chairs, monitors, whatever. If it's expensive, make your employer pay for it. No manager worth their salt should look askance at spending $1-2k if it'll keep you in front of the keyboard for even an hour longer per day.
If you're working for yourself and therefore self-imposing these ridiculous hours and spending limits, then stop. Seriously, just stop. Think about whether the payoff is going to be big enough to make crippling yourself for life. Hell, if you're really sitting at a computer for 15 hours a day, you're probably at risk of getting blood clots in your legs from lack of motion. No startup is worth dying over, or even seriously degrading your quality of living in the future.
comment 18y ago · link · parent
On the other hand, this could only come about after the labels had basically neutered independent Internet radio streams with their insane royalty structures. Funneling everything through Last.fm gives them a single entity with whom they can negotiate and from whom they can extort^M^M^M^M^M^M collect payment.
comment 18y ago · link · parent
True, it may not be terribly illuminating for a game programmer to rigorously prove historical theorems in computability or complexity theory. However, understanding the practical importance of big-O notation, the equivalence of any Turing-complete language, (as well as the lambda calculus, partially-recursive functions, etc.) and compiler design will all be of massive benefit when they're looking to actually distinguish themselves from the rest of the assembly-line game coders.
Overall, though, +1 on the idea of a solid two-year "Computer Programming" degree. Leave CS as a truly academic realm, and give those who are just looking for a solid white-collar career path a respectable path there.
comment 18y ago · link · parent
First and foremost, if you don't have control of who can physically access your hardware, you can't make any real assurances about the privacy and integrity of your data. I don't care how much you trust Amazon with your personal credit card and shipping information -- you are taking a big risk putting your customers' data there, too.
Secondly, EC2 has no SLA at all. Given Joel's (strong) argument about the limited usefulness of SLAs in general, that may not seem like a big deal, but the lack of any firm commitment on Amazon's part pretty much means that you're SOL if there are any major problems.
Finally, EC2 absolutely does not protect you from issues like mis-configured network hardware. Amazon may have incredibly redundant connectivity, including data centers in different geographic regions, but that redundancy doesn't necessarily benefit your virtual machines in the way it does Amazon's core business applications. One VM instance is still tied to one physical box hosting it, and if that box goes down, you'll lose that host and any data it hasn't flushed elsewhere on the network.
That's not to say that EC2 doesn't have its uses; I just couldn't imagine putting your mission-critical apps on it. Stick with prototyping, testing, batch-processing, and the occasional extra capacity for unexpected spikes in load, and you should be fine.
comment 18y ago · link · parent
Of course, you could also just use Postgres, which already lets you embed your choice of scripting language(s) in the database server...
comment 18y ago · link · parent
The former is especially obvious in the context of independent OS X developers' love/hate relationship with Apple -- it's a great platform, but if your app proves too popular, Apple is likely to just roll their own version into the next release of the OS, and shove you out of the market. Giving them source code along with the deal is just not a good deal for anyone but the boys in Cupertino.
The second issue is more subtle, but no less important. Manually reviewing millions of lines of code submitted by random ADC members is hardly going to be cost or time-effective for Apple. Also, even if they did decide to eat the cost, it wouldn't work -- even gifted developers have a hard time doing strong security audits of their own code, much less that written by other people.
Overall, it looks like a wishlist, not a feasible leaked outline.