Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Rust in an interesting language (Score 5, Interesting) 161

I'm not completely sold on the syntax, but I find the design and runtime interesting. I'd like to find an excuse to build something with it, to see if it can live up to its potential.

I started thinking about how I would design a language recently, then I came across rust, and I saw quite a lot of the same conclusions I came to myself. Abstract classes, multiple inheritance, Interfaces with versioning, combining 3rd party libraries... With rust, you define the layout of memory without inheritance, and the implementation of interfaces for types without defining the layout of memory. Neatly side-stepping some of the issues faced by other languages.

All resources and object lifetimes are managed, avoiding .NET's IDisposable. You can combine structures together, which can exist exclusively on the stack, avoiding the "everything is an object on the heap" problem that Java seems to fall into.

Since there's no NULL, there's no NullPointerException. There's no unchecked exceptions, or any exceptions at all for that matter. Though, I might prefer to have them. Sure, there's the try! macro. But that's just syntactic sugar for checking the return code of every function.

Comment Re:Better way? (Score 1) 289

If your machine is not connected to an atomic clock, your measurement in UTC is likely to be slightly off anyway. So tweaking the rate of time passing so that every day has the same number of seconds is a reasonable compromise. I remember hearing that google do this in their data centres.

If you do have a local atomic clock, record timestamps against TAI and convert to UTC. But even there you have to deal with clock drift, though the error bar should be much smaller.

Comment Re:Win/Lose (Score 2) 463

How long will it take before that virus scanner has cost the company 36 hours of lost productivity? Sometimes the cure can be worse than the disease. You'd be better off make sure everyone is saving files to a network drive with automatic hourly snapshots. Eg connecting via samba to a linux box running btrfs, or freebsd running zfs.

Comment Re:What can I really do with these things? (Score 1) 81

Nice projects! I also have 3 Pis, though only one is currently in use, as a RaspBMC media center. Works great, 1080p is indeed perfectly smooth. I've found the interface improves a lot if you use the fastest SD card you can, say a 30MB/s SanDisk Ultra or something similar (it pays to test the cards, not all "Class 10" are created equal it seems. Disappointingly mine wa slabelled 48MB/s, but tests at a bit over 30).

Slashdot Top Deals

Pound for pound, the amoeba is the most vicious animal on earth.

Working...