Better HN
topnewbestaskshowjobs
Log inSign up

binarycrusader

3,608 karma · joined Jun 9, 2011 (15y ago) · 1,202 submissions

Windows Developer @Microsoft. Hobbyist Game Developer. My words are my own and not those of any affiliate or employer. Formerly: Solaris Principal Software Engineer at Sun Microsystems/Oracle.
Submissions

comment 10y ago · link · parent

Read the original post again. I don't care what the news sites said at the time, the guy who wrote the post literally worked on it.

Read the post carefully.

comment 10y ago · link · parent

Read again, the claims were very specific in regards to a discrete GPU. Also, the author worked at Intel on Larrabee so unless you have proof otherwise I think it's best to give them the benefit of the doubt as to accuracy of the claim.

comment 10y ago · link · parent

Almost any crafting profession involves practice outside of work; for example: painting, photography, sculpting, etc.

I also suspect many academic professions fall into this trap as well: mathematician, physicist, etc.

As a developer myself, I don't think this particular aspect is unique, instead I think it's a matter of perspective and what we value in life.

For example, many individuals if they see someone reading a phone as they're walking may look unfavourably upon them thinking something like "people glued to their phones, bleargh". However, if the same individual was walking reading a paper book instead, many would simply shrug it off as "that person is a studious individual / bookworm".

comment 10y ago · link · parent

There's a "proper" version (postscript) with the original images intact here:

https://www.cs.princeton.edu/research/techreps/TR-449-94

comment 10y ago · link · parent

It's not the only system, unless you assume all of the same requirements and constraints that TUF proposes as necessary. There are other systems that do many of the same things that TUF proposes.

TUF also attempts to address a set of problems that some systems don't need to solve because it isn't a need they have.

With that said, I would agree that TUF provides a great model.

comment 10y ago · link · parent

> I still think the Model 3 will be fully autonomous without a traditional steering wheel...

That seems highly unlikely; most regulators thus far have been (unsurprisingly) unwilling to let autonomous cars on the road without some form of manual control. Given how early we are in the technological development cycle for autonomous cars, this seems prudent and logical.

comment 10y ago · link · parent

See nVidia's fun house as an example.

comment 10y ago · link · parent

Well, since the 1080 Founder's Edition can only run Crysis 3 at ~35fps, I doubt it, considering the Titan X is supposed to be roughly ~25% faster for gaming applications:

http://www.anandtech.com/show/10325/the-nvidia-geforce-gtx-1...

But it will certainly be closer; my guess is that we're still another iteration out from running Crysis 3 at 60fps at 4k.

If you're talking about the original Crysis, I suppose that's possible -- I don't have any benchmarks handy though.

comment 10y ago · link · parent

Well, LLVM doesn't work well on SPARC yet, so anyone on a SPARC-based system would be affected (yes, I know the number of people running FireFox on SPARC is relatively small, although it certainly numbers in the thousands).

And until recently, as another example, rust didn't quite work yet on Solaris (amd64); thankfully, a community member stepped up and has been actively working on that port.

comment 10y ago · link · parent

Great work!

Are you aware of markdeep?

https://casual-effects.com/markdeep/

...support for it might be a nice addition to this project.

comment 10y ago · link · parent

Great, because rust is not yet supported on all of the platforms that FireFox itself runs on (nevermind packaged), and that would put many in an unfortunate position.

comment 10y ago · link · parent

See also shmup: https://github.com/fabiensanglard/Shmup

comment 10y ago · link · parent

Are you writing a book instead? If so, looking forward to it.

If not, I'm completely a loss to understand why contractual obligations would prevent you from writing something.

comment 10y ago · link · parent

Even if memory is cheap, it still uses power, and as a result, has lots of heat to dissipate. In many high-end server designs, the power / heat aspects are the limiting factor -- not the cost.

comment 10y ago · link · parent

My choice is Markdeep: https://casual-effects.com/markdeep/

comment 10y ago · link · parent

The CDDL license explicitly provides a patent grant and since the ZFS code was released under the CDDL, I'm not sure what you're asking for.

comment 10y ago · link · parent

Your rephrasing still doesn't matter, Solaris event ports are not signal-based.

My understanding is that Solaris event ports were intended to offer equivalent functionality to Windows' I/O completion ports, so this should not be surprising.

Solaris also has its own native async I/O API in addition to supporting POSIX async.

comment 10y ago · link · parent

Solaris event ports most certainly can be and are used for async I/O. I'm not sure how you can claim otherwise:

https://blogs.oracle.com/dap/entry/libevent_and_solaris_even...

https://blogs.oracle.com/praks/entry/file_events_notificatio...

And Solaris, (unlike Linux historically at least), supports async I/O on both files and sockets. Linux (historically) only supported it for sockets. I have no idea if Linux generally supports async I/O for files at this point.

comment 10y ago · link · parent

Operating systems do in fact frequently tend to expose internal organizational boundaries of the company that produces them.

This tends to be more obvious when you start looking at packaging, interface, or documentation where different teams responsible for providing different parts of the product provide components.

comment 10y ago · link · parent

I also notice everyone seems to keep silent about the fact that comments were intentionally left out of the final JSON specification to avoid abuse by parsers/vendors.

comment 10y ago · link · parent

You know what's even better to me than GitHub-Flavoured Markdown? Markdeep:

https://casual-effects.com/markdeep/

Demo:

https://casual-effects.com/markdeep/features.md.html

Yes, I know they likely provided it for compatibility, but markdeep is just too cool to not mention.

comment 10y ago · link · parent

A tradeoff that few consider is that dynamic linking can lessen the motivation of library developers to reduce code bloat and complex dependency trees.

Architecting an operating system and its packages as a psychological forcing function to improve software development is not a worthwhile tradeoff for the efficiency, security, or reliability of a system.

Who cares about 20 megs here or there if there is only one shared library instance? Who cares about bringing in a tree of 50 dependencies for this console program if the user probably has them installed already? And thus we end up with the modern Linux desktop, where nearly everything depends on a gigabyte or more of dependencies.

I find it amusing that someone is arguing for static linking as a way to make it obvious how bloated programs are, since usually the counter-argument to dynamic linking from many is "who cares about disk space!".

There are plenty of programs that are distributed essentially statically-linked today, that still have 50 dependencies or more -- there is no data that I am aware of to support the idea that dynamic vs. static linking would encourage developers to reduce their dependencies.

Whereas with static linking, you can directly see the effect that any library you use has on the binary size. This encourages library and application devs alike to be more judicious with their dependencies.

This is a dubious argument at best; you can still easily see the size of your program today even if it's dynamically linked simply by looking at top, or by using the appropriate developer tools.

I can empathize with the frustrations that some feel in dealing with some operating systems and applications, but it is not due to a technological issue -- it is due to cultural and process issues present not only in the development of the software they rely on but in the distributions that provide the software themselves.

"papering over" those issues by static linking only makes the problem worse -- not better. This a cultural and process issue that cannot be addressed solely through technological means.

Also, I want to be clear that I am not linking against static linking completely; I'm arguing for dynamic linking (or more generally, shared objects) for those dependencies shared between a sufficient number of components that have sufficiently stable interfaces to share them.

By all means, if there is a component with a sufficiently unstable interface, then by definition, it is not appropriate for sharing between components, and at that point whether you statically or dynamically-link the dependency is moot, since you can have private dynamically-linked dependencies just as easily statically-linking them into binaries.

comment 10y ago · link · parent

statically linking to properly(!) made libraries will only maybe increase storage space it will decrease memory usage (as most loaders load the whole library, even when just one function is used)

Most OS linkers already do efficient loading of only the relevant portions of a shared library since they typically mmap the library file.

In aggregate, static linking the same dependency for multiple programs will increase memory usage as well despite your assertions to the contrary since the pages will not generally be shared (yes, I'm aware some OS have page dedup or compression, etc., but I'm talking about the general case here).

more things to upgrade, yes more bandwidth, yes (not much if one uses binary diffs)

A binary diff of 100 programs all linking to the same library will still be larger than the diffs for a single library.

In addition, updating 100 binaries, even with diffs still takes longer than uprating a single library, which means increased downtime during system updates.

potentially increased security risks, yes. although shared libraries are bigger security risks

Code is code; how is shared linking a greater risk? Have any data to back that up?

i made an acc just to reply to this. why do people never understand static linking ?

I understand static linking quite well, since my day job is part of a commercial OS team that coincidentally pioneered dynamic linking technology in UNIX.

So let's not base our arguments on assumptions about knowledge just because we disagree.

comment 10y ago · link · parent

But in the situation that a new version of the software is released, and I think it would benefit me right now, I'd trade all those downsides for being able to use that software right now than waiting to be included in my distro (like it happened to me with Gimp some years ago).

I don't understand what static linking vs. dynamic linking has to do with waiting for gimp to be included in your distro?

I'm plenty of memory, storage and bandwidth but not so much of time to compile it by hand.

No one is suggesting you have to do that, but someone will have to do that, and it does require resources (time, people, hardware, etc.).

I have to admit that this is just a workaround while we find a better software release and dependency management system.

If by system, you're referring to technology, then I disagree.

In other words, the technological constraints of today's package management systems are not the primary issue, rather it is how the software itself is being developed and managed and the available resources to do so.

Ultimately though, most of this all comes about because the underlying systems that applications depend upon in a typical Linux distribution are not properly release engineered. They don't properly version the shared libraries, they don't carefully avoid incompatible changes in interfaces, and they don't have sufficient regression testing.

So to me, the right answer is to fix the root of the problem, not paper over it by pretending there isn't one by essentially embedding copies of every dependency into an application.

In short, start encouraging developers to reduce their dependency chains, properly release manage their software, ensure that core system components offer stable interfaces, and provide timely updates.

comment 10y ago · link · parent

Because statically linking everything has several negative consequences:

  * increased storage space
  * increased memory usage
  * increased downtime for updates (since more files have
    to be updated)
  * increased bandwidth usage (total size of download
    for update)
  * potentially increased security risks
In short, trading off all of the above to simply avoid proper release engineering and simplified dependency management is the wrong answer.

Our systems need less downtime and better security; not the opposite, which is what static linking brings.

That's why Solaris, as an example, does not provide static archives for almost any of the components that are provided, especially libc.

comment 10y ago · link · parent

Your definition is weird.

Not from a distributor's perspective ;-)

xscreensaver is X11, not GPL.

Correct, but since it is distributed as part of the system, or is a component that most users will have, then, as an example, if you link your GPL'd code to Xscreensaver's API, that's ok, because it's considered a "system library".

Really, I was referring to more for the purposes of definition than anything.

Why does a C++ ABI really matter in a system distribution?

Because ABIs create a point of synchronization, and internally for that distributor, that create a flag day where a given set of components must be rebuilt at the same time.

Ideally, for a distributor, you don't rebuild the entire world every time one component changes. You only rebuild what you have to, since every delivery causes new binaries to be produced, which then in turn increases the amount of downtime for consumers that are upgrading.

As such, changing ABIs (thankfully GCC's doesn't change as much as it used to) create unnecessary churn, and if you can easily avoid them, you usually do (as a distributor).

comment 10y ago · link · parent

It's a system component in the sense that it's typically distributed as part of an operating system. Not in the sense that it's a "kernel" or something like that.

As someone that helps build an operating system distribution, we consider Xscreensaver to be a system component.

Also, for licensing purposes, the GPL, as an example, considers software distributed with the system to be a system component in some scenarios. For example, "GPLv3 has adjusted the definition of System Library to include software that may not come directly with the operating system, but that all users of the software can reasonably be expected to have."

comment 10y ago · link · parent

An ABI matters here because it means that the Xscreensaver component would have to stay in step with the compiler component, which means you've created an extra build time dependency.

It also means that if a user had their own Xscreensaver module, it too would be required to be using the same ABI.

In short, there's no particularly compelling advantage and a lot of disadvantages for a widely used and distributed component where you want to maximize its availability on platforms.

C++ is just a tool; it's not always the right one. The maintainer has made implementation choices to maximize compatibility and portability. You have to remember that Xscreensaver is designed to be used and executed on a wide variety of platforms, some of which are relatively old.

comment 10y ago · link · parent

There's nothing wrong with asserting "no C++" in systems software, especially on *NIX. The stability of the C++ ABI has generally been terrible for a long time, and by avoiding C++ in a component that's heavily used, a lot of maintenance headaches are avoided.

As one of the maintainers of the C++ ABI for an operating system, I assure you, it is best avoided for system components unless there's a compelling justification.

1
141516
41