4,107 karma · joined Feb 17, 2010 (16y ago) · 1,490 submissions
https://coderescue.com
comment 14y ago · link · parent
I can't say that I have all the answers, but neither are you providing any alternatives.
Can you make a suggestion as to how to prevent patents (or for that matter other IP protections) from being used as a tool to prevent innovation as opposed to promote it, as it was intended?
comment 14y ago · link · parent
As a way to fight patent trolls who produce nothing, it's been suggested that a requirement be added to attempt to actually CREATE and MARKET the technology. That you can't just sit on a patent and wait for someone else to stumble on it by accident; in fact, if someone else DOES stumble on it by accident, it should be considered de facto evidence that the patent isn't novel.
How is this related to the article? If you DID have the requirement that a patent owner actually produce a product, then you could add on the additional restriction that the patent would only apply in the market that the patented product is being sold to. If they can but won't sell an iPad version of their product, and they are notified that someone wants to use their patent that way, then (after a reasonable grace period) the patent would lose its ability to prevent competition in that realm.
Remember the Flip video camera? Super cheap video that anyone could use? They were allegedly working on a new version that would allow you to use the camera as an ultra-cheap video conference device. They were bought by Cisco for $590M, and then just before releasing this new product, Cisco shut them down. The Wikipedia article [1] suggests that maybe the purchase was to acquire patents, but since the company was still profitable and they made no move to divest their ownership of Flip, it seems more likely they shut it down rather than allowing the consumer device to compete with their expensive enterprise video conferencing devices.
It's when patents are used to PREVENT a product from existing that they should be null-and-void. That doesn't help "...promote the Progress of Science and useful Arts." [2] IMO, it's only when a patent is used to grant you a temporary monopoly on a product to help you recoup your R&D expenses through sales of the product that it should be valid.
And in the case of an iPad app being able to do the work of a large $9000 piece of hardware -- if they won't produce an app, they should lose patent protection that can be used against someone who CAN produce an app. Protecting their market for $9000 hardware devices shouldn't be done at the expense of "Progress of Science..."; it would be like blacksmiths using a patent portfolio to prevent cars from being manufactured, holding back progress rather than promoting it.
comment 14y ago · link · parent
If I remember correctly, I only had two people every really pass my test. One I hired and he worked with me for years and went on to be the VP of Engineering at a Fortune 500 company. One wanted $80/hour as a contractor and I couldn't afford to hire him.
I did hire someone who had a positively mediocre performance (keep in mind most people failed outright, many answering NO questions correctly) on the test once, because I thought maybe my test was too hard. He washed out after a few weeks.
What's my point? Don't set your bar too low, or you'll regret it. On the other hand, if you feel you need programmers better than you are, you may already be in trouble.
If you need programmers at the same level but with different domain knowledge, that's not a problem, but it's hard to "look up" at a skill higher than you and be sure of what you're seeing. Even if you think you understand what the candidate is saying, it's hard to distinguish between someone smarter than you mapping out a realistic approach and a smooth-talker very effectively blowing smoke out of their nether regions.
comment 14y ago · link · parent
I've read that, in order to get the #1 slot in "top grossing" for iOS apps, you need to be earning between $40k-$100k per day.
The publisher I'm working with has been sitting on an app that's been in the top 5 grossing for 5-6 months.
Follow the money...
comment 14y ago · link · parent
comment 14y ago · link · parent
Microsoft TRIED to get people to move to a "better" language (C#, which IS arguably better than Java) but the .NET runtime is massive and doesn't ship with existing tablets/phones, meaning it (or rather, Mono) would add 10Mb+ to a download size that needs to stay under 20Mb to download over-the-air (2G/3G/4G).
A lot of people did jump on that bandwagon, but C# isn't really great for games, and so the adoption has been lukewarm outside of the Xbox/Windows Phone development community.
Point is, until someone has created something that really is BETTER than C++ in the ways that it needs to be (which probably requires heavy investment in tools as well as libraries), it's going to be an uphill battle to get people to change.
Even if you had the Perfect Ultimate Language designed an implemented today, you'd need support in everyone's editors, debuggers (including source-level remote debugging support and any necessary server modification on all target platforms), cross-platform build support to all the relevant architectures, C/C++ linkage (unless you plan to rewrite all current libraries), JNI linkage (so you could interoperate with Java, which is required on Android), and support for multiple paradigms (NO single-paradigm language will ever be adopted across the board, nor should it be -- different programming problems are solved best with different paradigms).
Honestly "D" is the language that best fits the bill that I'm aware of, though it has a long way to go as far as support on other platforms and mindshare. I haven't yet USED D, though, so I can't really critique it intelligently.
comment 14y ago · link · parent
So is it an objectively bad language? Arguably. It just happens to be better for some tasks than all the alternatives, giving me code that's "safer" than C, almost as fast as C, and portable to all the platforms I need to target.
comment 14y ago · link · parent
There's thinking something is bad because it's different, and then there's thinking it's bad because it SUCKS. I grew up on commercial TV. Now I can't stand commercials, and I think HULU is absolutely insane for not having a "no commercial" tier -- and for charging you and STILL running the commercials.
I would SO rather pay for my media than have commercials interrupt it. It's not a kid being uncomfortable with an unfamiliar situation; it IS annoying to have your program interrupted.
And I'm not even militant about advertising -- I don't run ad blockers, and I even click on ads from time to time. What I can't forgive is people wasting my TIME. I have a finite amount of that (and why am I posting on Hacker News..? sigh...), and people showing me ads for things that I have ABSOLUTELY no interest in is nothing but a waste of my time AND their advertising money. HULU has a little button where you can tell them an ad isn't relevant to you, but it seems as if they ignore it. What a waste...
comment 14y ago · link · parent
I came across this bit of humor a while back that communicates the general feeling well:
http://bit.csc.lsu.edu/~gb/csc4101/Reading/gigo-1997-04.html
If the problem IS that it's huge and inelegant, then the solution isn't to try to improve it, but to start from a clean slate. Julia looks like a reasonable attempt.
comment 14y ago · link · parent
One document went back and forth between Word and LibreOffice and the numbering was always screwed up. Instead of:
1. 2. 3.
...it would come in:
.1 .2 .3
No actual missing information. Just screwed up formatting.
comment 14y ago · link · parent
Maybe my lawyer has a really old version of Word or something and he keeps sending me files in an old format that isn't supported as well.
I've also had a lot of files opened flawlessly by LibreOffice; it depends on how many features you're using. Maybe you're trading documents that aren't that complicated?
comment 14y ago · link · parent
I've tried StarOffice, OpenOffice, LibreOffice, Google Docs, Abiword, WordPerfect, and every other option available. Nothing comes close to Word in functionality. Sure you can write a few paragraphs and do rich text in any of those options, but if you're doing anything at all complicated you need more.
And yet LibreOffice Calc works as well as Excel in almost every way that I've used it.
And Outlook...I don't know a sysadmin who doesn't hate Outlook or (especially) Exchange. It's true, though, that no one else really has that functionality together in a reasonable package. Talk about a vulnerable product to target, though; I guess GMail is trying to take it down, though I would have a hard time trusting Google to manage all of my email. Nothing against Google, but their tech-support is practically nonexistent, so if there WERE a problem, there's no recourse.
comment 14y ago · link · parent
Microsoft Office basically doesn't satisfy this requirement itself.
I get frustrated with LibreOffice not importing files correctly, but then when I went to an Office 2007 to attempt to import an Office 2003 file, I found it was also failing to import correctly there.
The .doc format is such garbage that they can't even manage to import it correctly in their own software reliably.
comment 14y ago · link · parent
String READ_CONTACTS Allows an application to read the user's contacts data.
String WRITE_CONTACTS Allows an application to write (but not read) the user's contacts data.
So yes, if they HAD forgotten, then Android would have the same security hole. But it doesn't, because they took security seriously.[1] http://developer.android.com/reference/android/Manifest.perm...
comment 14y ago · link · parent
It would be nice to allow or deny an app "optional" permissions (selected as optional BY the app) at run-time. It would NOT be nice for users to be able to do this willy-nilly. With the dozens of possible permissions, you'd have millions of potential combinations a particular user could enable or disable, and you'd need to be sure your app worked with any combination.
But worse than that is the fact that a lot of apps are monetized by ads, and disabling "INTERNET" permission would prevent ads from downloading. If I'm trying to make a living off of my app, I don't want to make it easy for people to get it for free. Some people will anyway, of course, but no need to make it easy.
comment 14y ago · link · parent
This would be SO useful!
I have an app that I want to be able to collect crash reports for. This means I need the "READ_LOG" permission. Thing is, the log CAN have other potentially private information in it, so there's a scary warning for that permission.
If I could ask for READ_LOG permission at run-time, and Android would pop up a box saying "This app is requesting access to the log to: 'create a complete crash report and send it to the developer'" or some such, then only the very few people who are actually sending me a crash report would ever have to "reveal" their log data to my app.
comment 14y ago · link · parent
Already got the deck of dice. I don't actually have any extra old packs of cards -- I have a couple, but I'm not a big card game player. Well, I used to play Magic, but writing on Magic cards just seems wrong. ;)
comment 14y ago · link · parent
Also, consider: The whole effort doesn't need to be unique. Yes it would need to be customized for each employer, but once you've done the work, you can potentially use it again.
Unless it gets featured on Hacker News, of course. At that point you'd pretty much need to start over for your next job application. But hopefully at that point it's earned you a job. :)
comment 14y ago · link · parent
Speaking of settlement placement: There aren't enough rolls in a game of Catan for the distribution of rolls to come out as you'd expect them. I've played a game where more 12s were rolled than 6s (though OMG were there a lot of 8s). It's not bad dice -- it's just the normal result of a "random" distribution when you're not generating that many results.
So a HUGE part of the strategy that the article misses is to maximize your DISTRIBUTION of numbers. I don't care if there's an 8/9/10 combo available for your second settlement; if you already have 8 & 9, you're much better off with a 3/4/5 combo (assuming you have none of those). Otherwise you're stuck with a feast or famine situation; sure you might be lucky, but you might instead be resource-starved for large parts of the game.
I actually picked up a "Deck of Dice" [1] to use with Catan, which is 36 cards that have a regular distribution of results of rolling two dice, but haven't given it a try yet to see if it makes Catan feel different. It seems like it might play a lot different; I really should give that a try... :)
[1] http://www.boardgamegeek.com/boardgame/5460/the-deck-of-dice
comment 14y ago · link · parent
There are ALREADY interdependency issues if you're using git. Anyone could have changed anything before you did your last commit. If you pull and then push your changes without running tests, you're already risking breaking the build.
If a diamond dependency conflict came up, it shouldn't ever be committed to the TRUNK. Whoever made the change that causes a conflict should ideally discover that conflict before they submit it to TRUNK. But it's still not relevant to the decision to have one big repo or a hundred smaller ones, since the exact same problem can come up in either case if you fail to test before you submit.
With the proper workflow, having a lot of smaller trees can be functionally equivalent to having one massive tree. Checking in your branch to the TRUNK would require that you have the latest version of the TRUNK, and if you don't, then you'd need to pull the latest, just like how git works now. And updates to the TRUNK ARE atomic: Before you update TRUNK, it's pointing to the previously working version, and after you update, it's pointing to the one you just tested to make sure it still works.
And, just like now, a developer should therefore test to make sure the merge works after they've grabbed the latest.
It sounds like you're assuming that, if I update one of the submodules, it could break TRUNK? That can't happen without someone trying to commit it to TRUNK. Git remembers a specific commit for each submodule, and doesn't move forward to a new commit without being told to.
comment 14y ago · link · parent
Any time you were pulling the entire repo tree, it could be slow, yes. But assuming people are only working in one or a small number of repos at once, you can imagine a workflow that didn't involve nearly so many operations on the entire tree.
comment 14y ago · link · parent
Then tags at the super-repository level can record the exact state of all submodules.
It's not about not checking the other modules out; you can make this the standard behavior, sure. Instead it's about having git manage reasonable sized blocks of the code base.
comment 14y ago · link · parent
If you're defining the algorithm to that level of detail, then I submit that you're writing the algorithm. What you just described looked almost exactly like how it would be written in one of the more advanced current functional languages, and the OP and previous OP that he was responding to both considered functional languages to be Not Good Enough. What they're asking for is pretty much just Sufficiently Advanced Technology to Do What They Want (i.e., Magic, or strong AI).
Aside from that, sort IS something that's so common that it tends to be implemented in every high level programming environment in one way or another. Baking several sorts into a language isn't odd, so I don't think "sort" is a good example, because I ALREADY can say "take this list and sort it" in any language I use.
An Euler integrator isn't built in to anything but a DSL for animations or games, though. And it's one of THOUSANDS (millions?) of algorithms that a program might need -- most of which are more easily described (by the programmer) in a traditional language than by trying to jump through hoops to describe what you want in a way that you'll actually get what you want.
So yes, the trivial problems could be solved by such a language -- but they're already solved by CURRENT languages. It's the hard problems where it would be hard to know how to even start to create a "describe the results" language. I think all you'd end up with is a DSL for each of the cases you thought to describe -- which, depending on the domain, could be useful for that domain. DSLs are great when they're well designed. But as someone else pointed out, you don't write a game in SQL.
comment 14y ago · link · parent
The example "asynchronous get" becomes something like:
local myObject = query{ id=3244 };
The query function can be written to handle a cache lookup, a database query that gets stored in the cache, and any other logging you want, because Lua has coroutines. All I/O that gets sent through the "ngx" query object (which can connect to local or remote ports) yields control to the main loop."query" is an example of a function you could create; its implementation (with a cache lookup) could look something like (yes, I use CouchDB...):
function query(t)
local result = ngx.location.capture( "/cacheserver/id:"..t.id );
if #result == 0 then
result = ngx.location.capture( "/couchdb/usertable/"..t.id );
end
return result
end
I've heard reports of 50k+ connections/second on a VPS running Nginx, LuaJit, and the LuaNginxModule, and on my low-end VPS it easily handles 2000+ connections per second (with CouchDB queries) with no more than 250ms latency. Actually, that was as many connections I could send at it, so it may be able to handle a lot more.comment 14y ago · link · parent
With an Euler integrator, you say? (every frame, p=p+time_scaled(v), v=v+time_scaled(a) ). Note there's an implied time, as well as frames per second, in there, but a compiler can know about time. Unless when you're saying "acceleration" you're not talking about real time, but calculating where something will be at a future time...but I digress.
What about a Verlet integrator? [1] Maybe you'll also want to add springs, and Verlet works better for springs. Or maybe a Runge-Kutta [2] integrator? You can get more accuracy out of one of those. Though some people claim that a higher frequency Euler integrator can do as good of a job, possibly with more stability.
And how many times per frame should the system run the integrator? Because the stability of a system can depend a lot on the interval size. In fact, you might want to experiment with different integrators, and different time intervals, to get the result that's best for your application.
These are all choices that a PROGRAMMER typically needs to make, and they can be different for every problem. More than that, unless your compiler can DERIVE all of the above equations and more, at least one and probably several would need to be built in to the compiler.
This "problem" hasn't been solved because, short of creating strong AI, it's not solvable. This can only work when you're writing something like a "game builder" app: A domain-specific problem solver that is designed to deal with a very specific problem -- and which is coded using a traditional approach.
[1] http://en.wikipedia.org/wiki/Verlet_integration [2] http://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods
comment 14y ago · link · parent
See also: http://www.techdirt.com/articles/20120110/11395317367/websit...
comment 14y ago · link · parent
[1] http://www.techdirt.com/articles/20120110/11395317367/websit...