3,608 karma · joined Jun 9, 2011 (15y ago) · 1,202 submissions
comment 13y ago · link · parent
Also, I hated the high-gloss easily marred plastic on it.
I returned it shortly after purchase and said "never again".
comment 13y ago · link · parent
I could threaten to beat you with one for disagreeing that
it's the best thing ever, knowing full well I could
continue writing scathing retorts online with it
immediately after, but I won't... Because it's not the
best ever /for everyone/.
Uh, you speak as if the Apple aluminum Keyboard wouldn't hurt just as much or be almost as durable :-)comment 13y ago · link · parent
Go seems like an exercise in frustration to me at the moment for anything GUI or low-level OS-related.
Many GUI libraries use an object model that's difficult to map onto Go's heavily restricted interfaces, especially with a lack of generics.
In addition, interacting with popular libraries (such as libsdl or even OpenGL) that use thread-local variables (TLS) means using ugly workarounds like this one:
http://code.google.com/p/go-wiki/wiki/LockOSThread
So I think it really comes back to the "right tool for the right job." For most command-line utilities, and for anything networking-related, Go would be my first choice.
But for anything that needs a modern GUI toolkit and uses OpenGL, it would be difficult for me to justify.
Again, I love the model Go provides for programs and packages purely written in Go; it's only when interfacing with system-level components that I get cranky.
comment 13y ago · link · parent
How do you define the initial chroot? Who is responsible for creating that?
How would you migrate an existing system to use OSTree?
If an administrator has to manually create the initial chroot link farm, I don't think that's a very usable solution. In particular, it suggests a lot of process overhead that assumes most systems are "templatable" representations.
It's not immediately clear whether OSTree deals with necessary in-place upgrades or if it only helps you with reboot-based ones.
Even if you don't feel in-place upgrades are safe, again, most enterprise-level customers are demanding update solutions that don't require them. There's a reason why ksplice, et al. are becoming popular.
comment 13y ago · link · parent
I'm happy with the fact that it allows admins to choose
whatever they want at the filesystem and block level, the
same as dpkg/rpm do. For example in a cloud environment,
block level redundancy may be more easily provided at the
infrastructure level for guests.
While it may provide admins with choice, it doesn't provide them with "robust OS upgrades". Again, that's my only quibble here. For those who do need redundancy, you're free to choos
BTRFS, XFS+LVM, or hardware raid, whatever suits you.
There's a large variance in those solutions that doesn't provide the same end-user experience (or even result), and without integration with the package system, doesn't really provide the sort of safety net most administrators are looking for. As for the rest of your reply around the reboot-needed
flag; it basically sounds like it's fairly manual, but
maybe that's "good enough".
It's only "manual" in some sense for package creators; not administrators. For administrators, it's a transparent decision about what's safe to update and what's not.As for actually being manual, not really. The package system provides package creators with a tool called pkgmogrify, which allows them to set rules that cause transformation of actions based on patterns at package publication time. As an example, Solaris has a set of rules that say that, by default, any files delivered to /kernel should be tagged with reboot-needed=true.
I won't claim it gets the OS 100% coverage, but as has been said before "perfect is the enemy of good."
I have a particular paranoia about race conditions though,
so were I to design a system that attempted to do live
update applications, it'd be a whilelist, not a blacklist
as reboot-needed effectively is.
While I understand the paranoia, a whitelist is not actually a practical option. The vast majority of content delivered onto a modern UNIX or UNIX-like system doesn't require a reboot when being updated. man pages, header files, and most userspace binaries and libraries can all be safely updated without a reboot.For example, on my desktop workstation, ~289,806 items have been installed by the package system. Of those, only 857 have been determined to require a reboot if they are updated.
That means that roughly 0.37% (yes, < 1%) of the items on my system have been determined to require updates to be performed in a clone boot environment (require a reboot).
For enterprise-level customers, minimising the number of reboots needed to enact change is paramount. Any downtime at all can often cost them millions of dollars.
comment 13y ago · link · parent
If you think OSTree needs filesystem snapshot support, you
aren't understanding how it works. Or perhaps we don't
have a shared definition of "robust" - for me, assuming
correct behaviour at the filesystem and block layer, I
believe deployment changes to be atomic.
I'll put this differently; how can OSTree reliably get a system from StateSRC -> StateDEST without filesystem-level snapshots?If the answer is that an administrator must define what StateSRC is every time they upgrade their system, I don't think that's a usable mechanism.
If it does it based on the live system (the best answer), then without filesystem-level snapshots, how can OSTree reliably define StateSRC? There's a non-trivial set of race conditions OSTree would encounter while attempting to create its own "snapshot" of the state of the system.
Having filesystem-level snapshots allows you to get an accurate view of the live state of the system so that you can then modify a copy.
With ZFS, snapshots are basically "zero cost". Or rather, they have very low overhead for the base snapshot, and you only incur additional expense from divergences in the snapshot from its parent.
comment 13y ago · link · parent
If you think OSTree needs filesystem snapshot support, you
aren't understanding how it works. Or perhaps we don't
have a shared definition of "robust" - for me, assuming
correct behaviour at the filesystem and block layer, I
believe deployment changes to be atomic.
While OSTree itself may not need filesystem snapshot support, for "robust OS upgrades" (the original title of the ycombinator story) you do need some sort of snapshotting mechanism. Whether that's in the form of ZFS-style snapshots, or boot environments is up to the implementer.Also, I'd argue that assuming correct operation at the filesystem and block layer is a pretty big assumption :-) Even if the software itself works correctly, time has proven that trusting the hardware is not a good thing.
With that said, yes, I think OSTree needs filesystem snapshot support if admins are to rely on it to provide "robust" OS upgrades.
How do you determine reboot-needed=true? Is that
something assigned by the package developer statically
(i.e. kernel is reboot-needed=true)? Determined
dynamically at update time (like in the package metadata
for a specific revision?)
Currently, reboot-needed is determined by the package creator at the individual item level by tagging individual "actions" in a package manifest. It's a way for a package creator say "this component can't be safely updated on a live system, so force the creation and use of a boot environment clone when updating it."Further refinement of this functionality is planned when applied to specific types of actions found in a package manifest, such as "driver" actions. But it will be handled by the package system transparently.
Do you attempt to control for local configuration?
In what sense? pkg(5) allows an admin to force the creation and use of a clone boot environment as part of any package-modifying operation.If you're talking about service configuration, that's handled via SMF (the service management facility) which has its own snapshot system that services use.
If you're talking about legacy service configuration that uses flat files on-disk, then package creators have the option of using service actuators to trigger a restart or refresh of the service whenever the configuration file changes.
You'd have to be more specific.
Is the X server package reboot-needed=true?
No, because any files that the X server needs are already loaded into memory so updates to the on-disk files won't generally affect it. Any changes made to the X server binaries and libraries on-disk won't take effect until the X server is restarted.An incompatible change in the X server itself (such as a protocol change, which is very rare) will likely come with a related kernel change which would require a reboot. But again, the package creator is in control of that.
Also, the "reboot-neededed" tag doesn't force a reboot per se; it just forces the update of a given component to be performed in a clone boot environment.
comment 13y ago · link · parent
I think there's been some editorialising of the title as I don't see that the author of OSTree claims that it's a "robust" solution (alone).
With that caveat, without filesystem snapshot support, OSTree really isn't a complete solution (as the original author points out).
On Solaris 11+, there are generally two update scenarios for package upgrades:
1) pkg update [name1 name2 ...]
no packages have new or updated items tagged with
reboot-needed=true
pkg will create a zfs snapshot
pkg will create a backup boot environment
perform update in place on live root
if update fails, will exit and tell admin name
of snapshot so they can revert to it if desired;
will also print name of backup BE
if update succeeds, will destroy snapshot and exit
2) pkg update [name1 name2 ...] one or more packages have new or updated items tagged
with reboot-needed=true
pkg will create a zfs snapshot
pkg will clone the live boot environment
pkg will perform update on clone
if update fails, will tell admin name
of clone BE so they can inspect it and exit
if update succeeds, will activate clone BE,
destroy snapshot, and exit telling admin name
of new clone
Put another way, on Solaris 11+, the "default practice is the best practice." This is the advantage of integrating the package system with the native features the OS itself supports.comment 13y ago · link · parent
Go seems to have been used in lots of networking-related scenarios, but I have yet to see either a major graphical application or even well-known open source game written in it yet.
I would love to see what the architecture of a 3D renderer looks like in Go, as an example.
Like you, I also share the same interest with Haskell.
820.
Gloss – A Bidirectional Path Tracer in C(geon.github.io ↗)
74 points · by binarycrusader · 13y ago · 15 comments
comment 13y ago · link · parent
...are building a new kind of computer operating system
That's more than exaggerating slightly. If they were talking about a completely new OS architecture, I might accept that statement.So much fluff here and so little technical detail.
comment 13y ago · link · parent
To quote the blog post the other person mentioned:
...the RTM version will also include a few tactical C99 language extensions when compiling C code...
You can thank the C++11 committee for that; they worked to bring the C11 standard into the fold with C++11.
It's going to become increasingly difficult for curmudgeonly vendors to refuse to support C11 if they support C++11.
comment 13y ago · link · parent
There are a large variety of clones out there, and "inspired" titles, but Minecraft got a lot right as far as a sense of exploration is concerned.
There's a fairly advanced open source "Minecraft-inspired" game called terasology I found this weekend:
It's not as polished as Minecraft, but if you just want to get a feel for the basic mechanics and tinker without having to pay anything, it's worth a look.
Notch doesn't maintain Minecraft himself these days; Jeb at Mojang does. But they're doing a great job.
I no longer have the time to play Minecraft regularly, but I revisit it from time to time, just like Simcity.
comment 13y ago · link · parent
http://en.wikipedia.org/wiki/C11_(C_standard_revision)
Also, that SO post is about C++, not C.
No, it's about both C++ and C: Because C++ is based on the C standard (1.1/2, C++03) and
C99 is a normative reference (1.2/1, C++03) these also
apply, from the 1999 C Standard...
See section 7.1.3 of the relevant standard:http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf
Also, the divergence has actually been lessened since the C++11 committee worked closely with the C11 committee to bring the standards closer together.
That's part of why Microsoft is picking up a lot of C99 as part of their work for implementing C++11.
comment 13y ago · link · parent
http://stackoverflow.com/questions/228783/what-are-the-rules...
Update: as another person points out, _Generic is now an official keyword as of C11.
comment 13y ago · link · parent
We're talking about C -- the lingua franca of systems programming and important on every major computing platform.
I'd be more sympathetic to Microsoft's insistence that it "wasn't their focus" if they didn't have a long history of ignoring industry standards in favour of their own.
However, Microsoft recently said they were going to implement more of c99:
http://arstechnica.com/information-technology/2013/06/c99-ac...
...and to their credit, they've almost fully implemented the standard library from the C99 standard:
http://blogs.msdn.com/b/vcblog/archive/2013/07/19/c99-librar...
Of course, the C11/C++11 committees know how to solve this silliness -- they've intentionally worked on bringing the most recent C11 and C++11 standards closer so that if you implement C++11 you have to implement more C support :-)
The world no longer revolves around Windows or Microsoft platforms; every major platform except Microsoft's has an included or defacto compiler that supports C99. Developers wanting to write code that can be used on multiple platforms are understandably upset that Microsoft has made their lives more difficult for no good reason.
I view their lack of C99 support the same as their continued refusal to natively support OpenGL on Windows Phone, et al.
Although, given they recently implemented WebGL -- I remain hopeful.
Finally, I'd note that I'm pragmatic about this; I don't expect full C99 support. I'd accept full C11 support instead -- the controversial parts of C99 were made optional in C11. And they now finally seem committed to at least making a useful attempt at C99/C11 support thanks to the C++11/C++1y standards.
comment 13y ago · link · parent
https://news.ycombinator.com/item?id=6137979
Many developers working in the area of games or video and graphics decoding/encoding need access to native-level instruction sets to get maximum performance.
Nevermind that I have no desire to attempt to debug my emscripten-translated C/C++ application instead of just debugging the original source.
There's an entire ecosystem around supporting native apps in terms of tooling, debugging, libraries, etc. and FireFox OS seems to ignore all of that.
Personally, I believe FireFox OS will fail in the mainstream market without native application support. I'd love it if they prove me wrong, but ignoring the need for native applications seems like an obvious mistake.
A well-coded native application can make or break its success on having access to the full functionality of the underlying platform.
comment 13y ago · link · parent
https://developers.google.com/android/nexus/drivers#razorjss...
Seems like Google decided to solve the problem right away once it got a bit of attention. Good on them for that.
Also looks like Nexus 4 binaries for Android 4.3 are available at the same time; I didn't think those were available either, does anyone know for certain?
comment 13y ago · link · parent
no video device support (which means you can't even boot to the Android home screen) for the new Nexus 7
Google was aware of all of these issues and still made the hardware choices they did. They could have chosen differently.
These are flagship Google devices; my expectations are (I think rightfully) different for those than some random device.
comment 13y ago · link · parent
...can't boot to the home screen on its flagship device for lack of GPU support...
That sort of makes it useless. I'd only be willing to buy the device argument if we were talking about a microphone or webcam, but when you lack the most basic of support (video), I think that's not a useful argument to have.comment 13y ago · link · parent
the definition of open: "mkdir android ; cd android ;
repo init -u git://android.git.kernel.org/platform
/manifest.git ; repo sync ; make"
https://twitter.com/Arubin/status/27808662429Well, I suppose if you define "open" as being able to build the software, but don't promise you can actually use the result, that makes it acceptable.
The other important thing to note here is that Jean-Baptiste Quéru is not just some random Android developer. He is the the point person for what everyone previously believed was "open" development on Android.
comment 13y ago · link · parent
http://docs.oracle.com/cd/E26502_01/html/E26507/index.html
There are loads of generally useful technical details about ELF and linking in general that apply to almost any UNIX-like platform.
For example, full details of the System V Application Binary Interface (ELF):
http://docs.oracle.com/cd/E26502_01/html/E26507/glcfv.html#s...
Rod Evans and Ali Bahrami have decades of experience in this area and often added new functionality to the Solaris linker long before the GNU folks ever considered it.
Rod in particular has a very valuable set of posts with insight into linkers and related vagaries on his blog:
The Solaris linker was made to deal with crazy things like 4GB+ executables, multiple processor architectures, and hardware capabilities.
comment 13y ago · link · parent
Contributor agreements are a necessary mechanism to protect the project and ensure its future when dealing with patents or preparing for the potential of relicensing.
comment 13y ago · link · parent
And while the Apache Foundation already has a "permissive license" it's not quite as permissive as BSD / etc.
And if the Apache Foundation wants to relicense, to say, a future version of their license, they're still going to potentially need that contributor agreement.
Again, as I said before, there are tradeoffs.