News for hackers. Stuff that matters.

stephenjudkins

Re:The Status of HTTP/3 on Monday January 13, 2020 @04:50PM (#22039090)
No. Most NATs handle UDP sessions trivially as long as one end of the connection is not behind a NAT itself. Tricks like UDP hole punching are necessary only between two endpoints that are both behind NATs.
One of the authors is known for heavily cherry-picking his facts, making some pretty extreme and outrageous assumptions, and suing fellow academic critics who point this out. Caveat lector.
Re:HiFive1 – Arduino RISC-V Dev Board on Friday November 02, 2018 @11:52AM (#18363919)
People are excited for RISC-V instead of Raspberry Pi's ARM.
It is explicitly advertised on Adafruit as a level shifter https://www.adafruit.com/product/1787
Re:SSD Prices in a Free Fall on Monday June 22, 2015 @08:08PM (#9761949)
There is Blu-ray compatible archival disk format that the manufacturers claim will last 1000 years: https://en.wikipedia.org/wiki/M-DISC

I don't know how this claim could be verified in our lifetimes.

Re:SSD Prices in a Free Fall on Monday June 22, 2015 @01:37PM (#9759881)
Here's one theory: https://storagemojo.com/2014/04/25/amazons-glacier-secret-bd... and here's the HN thread: https://news.ycombinator.com/item?id=7647571

Facebook uses Blu-ray discs with a robotic storage system for its cold storage: http://www.datacenterdynamics.com/it-networks/robot-digs-thr...

Re:Combinator Parsing on Monday May 05, 2014 @01:40PM (#7699925)
parboiled2 [https://github.com/sirthias/parboiled2] offers pretty much everything the built-in parser combinators do, but with fewer bugs and vastly improved performance. Since both use PEG grammars, it should be straightforward to port over. parboiled2 is fast because it generates fast, stateful parsers using macros while only exposing a purely functional interface.
Re:Building an open source Nest on Friday January 17, 2014 @02:41PM (#7077965)
It's pretty simple to wire up a 24VAC thermostat to control 120V power. Purchase a transformer [http://www.amazon.com/Honeywell-AT140A1000-40Va-120V-Transfo...] and a 24VAC relay [http://www.amazon.com/dp/B00097BDUA/ref=pe_385040_30332190_T...], get a junction box, and wire it all together.

This doesn't solve your problem of the $250/room cost, but if you'd like to use some other thermostats in your rooms this would work great.

The only complaint I'd have about mine is that the relay is very loud. You might want to search for a quieter one.

By comparison, Apple just posted $8.22 billion of net income. [http://www.nytimes.com/2012/10/26/technology/apple-profits-r...].

Approximately $5.1B of Samsung's profits came from their phones; this is despite Samsung being an extremely diversified company. I cannot find what proportion of Apple's profits come from sales of iPhone and iPads; they do, however, make up a majority of their revenue.

Re:J2objc - A Java to iOS Objective-C translation tool and runtime on Thursday September 13, 2012 @06:45PM (#4519054)
If you're curious how this handles memory management--the largest impedance mismatch between Java and Objective-C--see http://code.google.com/p/j2objc/wiki/MemoryManagement.

The preferred method, for iOS apps at least, seems to be use reference counting. This implies that any objects with cyclical references will not be released. Thus, the semantics of this approach will be subtly different than that all JVMs, which have GCs which can detect cyclical references. Thus, the documentation suggests using "runtime and tool support to detect memory leaks".

This is probably meaningless for most developers: it is only going to be made available "for use in development, qualification, and testing". Further, there's no information on what license this will be released under.

It's a shame, but given the amount that Azul has poured into research it is not surprising.

At least we can look forward to some interesting benchmarks and code analyses, perhaps?

http://nixos.org/nix/ summarizes some of the advantages of this approach. To summarize, it promises to be fundamentally safer and more flexible than traditional package managers. Package management, IMO, is an area where a "purely functional" approach could really shine, since correctness and replicability are so important.
Re:The Brittleness Of Type Hierarchies on Tuesday May 08, 2012 @04:24PM (#3945621)
I'm surprised he didn't mention typeclasses as a solution to this general problem. In many cases it's an unambiguously better solution than inheritance. A particular strength is that typeclasses can be easily defined or overridden at call-sites as easily as at where data types are defined. OOP forces an uncomfortably close complecting of data and operations on that data, leading to the difficulties enumerated in this blog post.
Re:How the Boehm Garbage Collector Works on Friday February 10, 2012 @01:24PM (#3576849)
This will vary between 32-bit and 64-bit environments. My understanding is that the vastly larger address in 64-bit environments greatly mitigates the chance that data will be mistaken as pointers.

As far as crafting input to match allocated addresses, that is an interesting idea. One could, at the very least, create data that lies within the heap's address range. The issue is, you'd need a lot of data to blacklist a significant amount of memory, and if that's the case why not just DoS with a ton of data?

In practice, a fragmented heap is probably a much bigger issue than actual leaks. As the article points out, a conservative GC cannot perform compaction.

This is the largest practical issue I've had with developing a Scala project.

One major cause of the problem seems to be that Scala is stuck with the "precompiled bytecode in JARs" model of software distribution; while this may be appropriate for Java (where core developers go through great pains to maintain compatibility between versions) it seems like a poor fit for Scala. Not only do the core library APIs change between versions, but the conventions used by the compiler to "link" Scala code together are also altered, for good reason.

An alternative distribution mechanism that's more resistant to these kinds of issues might make sense. Even just distributing source code and build files (like, say, Ruby) could be a better solution. Building dependencies might be slow at first, but centralized caching could address this. Another solution might be an intermediate representation (after type-checking and other compiler phases, but before "linking") that gives the Scala compiler the knowledge that's missing from compiled class files.

Even namespace-mangling or class-loader magic could be helpful here. Loading multiple versions of a single dependency should in theory be possible, since OSGi manages it.

Sadly, there seems to be a pretty large investment by the Scala community in the whole Java/Maven/JAR ecosystem. It'd take a concerted effort by many people to create a more robust solution.

Re:Dispatch Author Responds to the Scala Email on Friday December 02, 2011 @01:17AM (#3302948)
Finagle is a great library. We were able to pretty quickly write a HTTP load-testing tool; features like failover and retries give the impression that it's a battle-tested library.

However, like all the Twitter Scala libraries, it's currently stuck at 2.8.1 (2.9.0, the next version, was released May 2001). Most new Scala libraries are only being released for 2.9.x, meaning that most developers are forced to make a choice between using Twitter's libraries or other, newer ones.

Further, there are several outstanding pull requests on GitHub to add 2.9.1 support. It was relatively trivial to update the libraries to 2.9.1, but they're not getting integrated. I haven't gotten any feedback about when these might get merged, or why Twitter is stuck on 2.8.1. I've heard through third parties that this is due to problems with Java interoperability with 2.9.1. Also, the custom SBT plugins used seem to, for some reason, break SBT's ability to cross-build.

Unlike with Ruby gems, using forked dependencies is non-trivial.

I intend to keep using Scala. This problem, however, is representative of the relative lack of maturity of the Scala ecosystem. I hope and anticipate this will be resolved in the future. As of now, they represent real problems that get in the way of delivering working code.

Re:X86's Days as a Consumer Microarchitecture are Numbered on Monday November 28, 2011 @09:48PM (#3288753)
This is an largely vapid and meaningless prediction by someone who doesn't demonstrate anything but the most superficial knowledge of the microprocessor industry. Perhaps he knows something we don't, but as far as I can tell he's only extrapolating current market trends.

Obviously Intel (once led by Andy Grove, author of "Only the Paranoid Survive") is aware of the threat posed by ARM. If someone could explain how Intel will fail to meet the challenges of getting x86's performance-per-watt to match ARM's, and how this compares to the challenges ARM vendors face in order to get raw performance up to Intel's level, I would love to read it. However, this post offers little such insight.

Re:NuoDB another NewSQL database. on Monday November 07, 2011 @05:38PM (#3208500)
Taken directly from the page I linked from above:

"Note that if W + R > ReplicationFactor, where W is the number of nodes to block for on write, and R the number to block for on reads, you will have strongly consistent behavior; that is, readers will always see the most recent write."

Could you explain why this is incorrect? It seems the Cassandra devs use the definition of "consistency" from Brewer's paper, and Cassandra offers this level of consistency.

Your point about read-repair is correct when using QUORUM consistency level, but even then you can avoid that by using the ALL consistency level.

Re:NuoDB another NewSQL database. on Monday November 07, 2011 @01:43PM (#3207578)
This is false. Cassandra can offer any level of consistency you desire, on a per-operation basis. See the "ConsistencyLevel" section of http://wiki.apache.org/cassandra/API. The tradeoffs of the CAP theorem, of course, apply. But if you want 100% consistency (availability and partition-tolerance be damned) it's there for you.

There is a general misconception that the an entire DBMS must pick tradeoffs based on the CAP theorem. (IE, you can use a database that offers availability, but can NEVER offer immediate consistency) Instead, a DBMS may offer different CAP guarantees per operation.

Re:What caused the Great Recession? It could have been $18 beer. on Saturday October 29, 2011 @07:00PM (#3173074)
I mostly agree with you.

The likely situation is that the US will pay down its debt through a combination of spending cuts and tax hikes. But there is no doubt that the tax hikes will be substantial.

I believe we're in a pretty poisonous political environment, where the dominant strategy for a politician seems to be to convince your constituents that they're being taken advantage of. Most people who benefit from government programs don't realize it (see http://economix.blogs.nytimes.com/2011/02/11/keep-your-gover...), and most voters have an incredibly skewed view of what, exactly, the government spends money on. When polled, voters oppose cuts to almost every major program.

That the median voter has largely incoherent views on the budget, but is very angry about it, leads us right into our current mess.

To my original point: OP's argument is big on righteous indignation, along with a narrative that allows him to cast himself as a "good guy" and short on actual facts to how to dig our way out of this mess.

Re:What caused the Great Recession? It could have been $18 beer. on Saturday October 29, 2011 @06:29PM (#3173003)
I'm hesitant to wade into this debate, but this is a pretty sophistic argument, for a few reasons:

* He largely ignores the potential for a catastrophic financial collapse in 2008-2009. At the time, pretty much everyone agreed that stopping the bleeding was a good idea. Among economists, that some sort of vigorous action was necessary is close to a consensus view. To completely dismiss this is ridiculous. Further, he doesn't address how expensive TARP actually ended up being, or that the majority of the money has been paid back.

* The funds weren't obtained from "new taxes levied on employed, middle class, non-drinkers who have never set foot in Heidi’s bar." There has been no increase in federal income taxes since Obama took office. The only meaningful tax increases that I can recall come as part of the Affordable Care Act.

* The author makes no concrete arguments for why no changes to financial regulations are unnecessary. Instead, there's a glib aside that the 'government also announces a series of regulations to “fix” the problem'. Really? This is important. Tell us why. If the government had stopped banks from selling Heidi's bonds as AAA-rated securities, wouldn't this crisis have not happened?

Overall, this is a simple, facile metaphor with many implicit assumptions, designed to bolster the author's libertarian worldview. To the author's credit, he does a good job explaining the fundamentals of the housing crisis.

Older »