HNHacker News
TopNewBestAskShowJobs

wiz21

120 karma · joined July 22, 2012

submissionscomments
wiz21··on Fukushima
100% agree. Look at : - asbestos - car exhaust pollution

all of those are so silent, so invisible and kill or hurt so many more people.

wiz21··on DEC64: Decimal Floating Point
I use to think like that, but then there's practice over theory :

1/ When a coder thinks about writing "if a <= b", then he writes "if a <= b", he easily forgets that he should write "if a <= b + epsilon()"

2/ When people are faced with "I have to have this number with 2 decimals", they sometimes write a = round(a * 100)/100; forgetting that 'a' is a float (or double), and then they completely forget that the new 'a' is just not accurate.

3/ Issues with floats arise on simple operations such as addition. And people tend to think that simple operations have no rounding issues.

It'd be perfectly valid to work with floating point for money; but then you have to take care of the rounding issues much more often than with fixed point (or BigDecimal if you're in the java world). Once you use those BigDecimal, addition becomes safe, and "manual" rounding works as expected (when you round to 2 decimals, you get exactly 2, not an approximation).

So, after project managing several teams of developers, I can safely say that although F.P. can be fine, most people can't handle the mental load of thinking about rounding issues on each math operation they do (and "most people" includes myself). That's a human risk management issue, not a theoritical one.

wiz21··on How new data-collection technology might change office culture
>>> Participation in the pilot project was optional and those who opted in were given contracts that made them owners of their own data.

"optional" like you have the choice in this free society : or you wear the damn badge or well, you find another job. But hey, you have choice, you have freedom.

ahahahaha !

>>> workers were given personalized dashboards that benchmarked their performance against that of the group.

rotfl:-) so you can reduce a human to a few metrics ?

>>> "The minute that you get the report that you're not speaking enough and that you don't show leadership, immediately, the next day, you change your behaviour,"

Hiring sheeps at Deloitte ? If they behave like that, they're not far away from Pavlov's dogs !

>>> "It's powerful to see how people want to display better behaviours or the behaviours that you're moving them towards."

Oh that little powerless, fragile geek now has a sense of POWER ! ah he's going to RULE the word. I'm sure he had got that little org4zm

>>> Generally, though, most companies are using these tools for positive ends

Ah, "generally" like 5.00001 out of 10 ?

Ah, it's for real ?

ouch

real like real ?

double hand palm :-(

damn... I really do have to find another planet, is there still room in the next human-without-return Mars mission ?

stF

wiz21··on The Danger of Managing Drug Prices
I don't agree that people think that incentivisation is the only way to make the world go round. That's a very poor vision of what humans are. By the same kind of logic, governments are not efficient; water supplies should be privatized because they'd better managed; refugees landing in your country eat your job. Sorry for conflating things a tad, but, damn, that's just all the same simplistic logic. Upgrade your social brain and you'll see.

I don't care if 20% of money goes back to research. I care that pharmaceutical companies use various means to "protect their assets". I once worked for Johnson&Johnson. Guess what was wirtten on every single desk there ? "We work for the good of our patients and investors". That is, patien on the same level as investor. For me, this doesn't sound like a sucess for humanity. That looks like the best of the worst solutions.

wiz21··on The Danger of Managing Drug Prices
No private didn't win. But public, that is, you and I, clearly lost.
wiz21··on Python Software You Can Use
Given that language is actually language+libraries; and that libraries come to life depending on the good will of their creators; and that good creators just choose their languages preferences; and that new languages are created every year (and some even succeed !); your scenario is not going to happen anytime soon.
wiz21··on Python Software You Can Use
Don't know where the guy lives but for me cx_freeze + PySide +SQLAclhemy make a great combination to build a good desktop app on windows. It works fine, builds all the time. I can admit that I had to work a bit on it, taht's for sure, but it does work. And the application is a small ERP, used in production every day, by a dozn of people. Tha only problems I have are my own bugs.

Python doesn't need such articles, that's for sure. If you want to use Python to write JavaScriptish web front end, then you're just going the wrong way. Just use JavaScript and that'll be so much easier.

wiz21··on Convert any Python file into a single line of code
is it me or is it continuation passing style ?
wiz21··on Stocks Off Sharply as Market Upheaval Grows
Pardon my ignorance, but why will the : "existing holdings will return to their yesterday prices at some point" ? The way you put it seems so inevitable (although "at some point" may be 100 years from now). So, as you're not the only one to say that, I'd like to know what makes you think that the holdings will get back to their previous level ? Because, if they increase from their current position, then you certainly imply that they will increase indefinitely, which in turns mean (because you didn't frame that), that putting money on stock exchanges is always a good move, because holdings value increase...
wiz21··on The Unemployable Programmer
Agreed. We're pickier. I work on application that ditributes about 1E9 euros a year (so it's smaller than a bank but that's not exactly a small application either). We're maintenance-mode now. When I hire, I need : some who : - can actually code (many of the applicants can write code, but they don't know important things like : how does a hashtable work, recursivity, etc) - can write reliable code (i.e. ability to test, ability to imagine failure before they happen) - can write readable code (because you knw, we're working in a team) - can handle harsh customer (because when you fail, well, they're not happy)

believe me, we don't have millions of those ready. Many can code, but code in "real" life where you don't have luch room to learn from mistakes, well, there ain't many...

wiz21··on Guido on Python
Moved a rather big, produciton running, project (100000 LOC) recently. Was not easy but now I've this very warm, conforting feeling, that if something happens in the future, I'll be ready for it :-) (now considering the adoption rate of P3, I'd say the future is, well, rather distant :-))

For me unicode was the reason to switch to 3, not everybody lives in an english-only world :-)

wiz21··on Why Should We Support the Idea of an Unconditional Basic Income?
I was shocked by the "magic of markets" analysis. When there's no more bread, people make more bread ? Nope, bread becomes more expensive. Especially with automation : it's harder for new baker to start in the market, so those in the market get more powerful. That's concentration.

Basic income will make less poor but more slaves. Slaves that will be dependent on those (I assume it's the state) who define the exact amount of that uncondional income. Since a huge part of the population will be out of the "producer", thus the producer will have more power.

What must be done instead is to make sure power doesn't get concentrated. But this means less efficiency : one big optimised company is surely more efficient that ten smaller ones. With less power, the workforce can still negociate, the workforce can still share the remaining work, those who have no job still have a chance to get one if they want/need to. With basic income, there's no need to do that anymore...

So I don't like that basic income.

For example, there's a lot of unemployment in my country. People gets some allowance to live. The problem is that the lack of work is not acknowledged => those people are stigmatized. Anyway, they do get an allowance, kind of your basic income. The problem is that because of the unemployment, the employer are in a very strong position to pay people less (since many do want/need a job). So work valuation diminishes...

Competition is the problem, if companies would compete less, then basic income could work. There would be more space for choice : do I work or not ? can I share my work ?

Basic income means : let's detach ourselves from the consequences of competition.

wiz21··on Google Moves Its Corporate Applications to the Internet
Because :

- lots of information is ambient at the team place - because not all people are that concentrated at home - because working alone is difficult sometimes (especially when you're under stress) - because you're harder to contact (yes, some people are afraid to call a colleague at home) - because people don't like to have 4 simultaneous chat sessions with colleagues

So a day of remote work certainly help, but I'd venture to say that's a maximum for many. Of course there are people who a re remote 100% of the time, but not everybody can do that. You have to love your work for that, and many people don' t /love/ their work...

wiz21··on Cooking Patterns
> They aren't called patterns, they are called techniques.

I totally agree. That's weird to see the n+1-th geek discovering something people have been doing since the dawn of humanity.

Damn, we're just talking about basic cooking. I understand many of us didn't learn the basics, but nonetheless, it's basic.

Imagine somebody saying he discovered "patterns to ride a bicycle" and explaining how to go from A to B with a regular bike in the most obvious fashion...

wiz21··on Now available: auto-scaling PostgreSQL deployments
I sense you've never worked in a suit & tie enterprise...

If you have backups, upgrade, access to monitoring tools, etc. 125$ / month is just 2 hours max of developer time.

That's a bargain and your standard Oracle admin should just feel threatened :-) (provided the company is willing to put its data on a server far away of its control room, which, I guess, doesn't happen so often :-))

so a bargain if you actually can make use of it...

wiz21··on SSI: An Open Source Platform for Social Signal Interpretation
SSI... Dunno why but that rings a bell... Strategic Simulation Inc.
wiz21··on William Gibson: How I wrote Neuromancer
Let's think about this once more : "global postmodern nihilistic meta-state"

ouch !

stF

wiz21··on Copy protection scheme that was used for Dungeon Master on Atari ST and Amiga
Well, not for me :-)

I cracked a few games, looked at someone else's code but I can assure you that at the ASM level, it's very hard to understand that phong-shading routine to the point you can actually re-code it yourself...

(yes, I've tried :-))

stF

wiz21··on Copy protection scheme that was used for Dungeon Master on Atari ST and Amiga
I just can imagine :-) I also learned after that some protections used undocumented processor instructions or edge cases of some... But back in the days, you had no internet, access to documentation was not easy esp. if you were young... So although I regret the lack of friends-like-me by that time, I also appreciate the various tricks of the trades that I've learnt then... Now I write python... That's much easier but it makes programming so much more mundane. Bah, another time, another story :-)

stF

wiz21··on Copy protection scheme that was used for Dungeon Master on Atari ST and Amiga
I remember cracking Teenage Mutant Turtles and IBM Writing assistant just with the "debug" tool provided in the standard MS-DOS. It definitely took half an hour or so. The tests were very dumb, that's for sure. Just replacing a "JE" by "JNE" or something like that would do the trick.

I also cracked Ultima 6. That took me 3 days of intense work. The protection was hidden in the dialog engine. So you were not seeing the actual code, but the interpreter of dialogs actually interpreting the protection in the dialog engine (that was a super simple interpreter, more like a state machine). In the end, it was just a matter of understanding the dialog data and extracting the answer to the protection question ("on page 34, what is the third word ?").

I also cracked some football game by writing a program that would intercept disk access and the replay the disk-errors to cheat it. An emulation layer if you like.

The games that I've never cracked were Elite 2 frontier (the damn thing had checks all over the place and that was too hard); "le manoir de mortevielle" had super nasty decryption stuff. IIRC they were running decrypting code inside the interrupt table (so if you had to use the keyboard or timer to trace the code, then woosh :-)). I also went mad on Leisure Suit Larry were the protection was written in an interpreted language. At that time I was 16 or 17 and had no idea of what an interpreter was = >I've never understood the scheme :-(

You had also games with special messages in it such as "we worked very hard on this so don't crack us).

But the best thing I've seen is when I've tried to look into a already cracked game .the previous hacker Mr. Detergent I think, send a message along the line of "you're weaker than me". I Was sooooo upset :-)

I guess I cracked 20 or 30 games on PC. Most of them were very simple. But in the end things were getting harder. I had to use the Soft-ICE debugger (massive thing :-)) and then, well some had these hardware debugger and came the protected mode and, well, I got lost and started working on more creative stuff (Imphobia if one remembers :-))

stF

wiz21··on The skyline problem
Ahhh read too fast :-( Crucial sentence is "Fortunately, we know about a data structure which can keep track of an active set of integer-keyed objects and return the highest one in O(logn) time: a heap."

But then again. If I read well, he wants to 1st sort the points, 2 iterate over them and using the heap. So we have n log n for the sort and n * n log n for the heap use.. Basically (1+n) n log n (or i'm still tired ? :-))

wiz21··on 8088 Domination Post-Mortem, Part 1
Having been in the demoscene (Imphobia) for a long time and having been in more abstract (quad tree construction optimizations) stuff I can say that writing a demo is not the same as computing theory. Writing a demo is most often exploiting a very narrow area of a given technology to produce a seducing effect (more often than not, to fake something thought impossible so that it looks possible). So you're basically constraining the problem to fit your solution.

On the other hand, designing pure algorithms is about figuring a solution for a given, canonical and often unforgiving problem (quicksort, graph colouring ?). To me, this is much harder. It involves quite the same amount of creativity but somehow, it's harder on your brain : no you can't cheat, no you can't linearize n² that easily :-)

To take an example. You can make "convincing" 3D on a C64 in a demo because you can cheat, precalculate, optimize in various way for a given 3D scene. Now, if you want to do the same level of 3D but for a video game where the user can look at your scene from unplanned point of views, then you need to have more flexible algorithms such as BSP trees. So you end up working at the algorithm/abstract level...

A very good middle ground here was Quake's 3D engine. They used the BSP engine and optimized it with regular techniques (and there they used the very smart idea of potentially visible sets) but they also used techniques found in demo's (M. Abrash work on optimizing texture mapping is a nice "cheat" -- and super clever)

Now don't get me wrong, academics is not more impressive than demoscene (but certainly a bit more "useful" for the society as whole) These are just two different problems and there are bright minds that makes super impressive stuff in both of them...

stF

wiz21··on 8088 Domination Post-Mortem, Part 1
Argh ! was that possible ? I actually stop playing with that with my last overscan "320 x +/- 240" attempt during which, for some reason, the screen beamer concentrated itself on exactly on scan line of the screen, rendering it super bright and emitting a super scary sound. My screen always had a darker line in the middle of it since that experiment :-( You could actually damage things by playing with hardware...
wiz21··on Where the term "Zero Day" comes from
oh memories... Some were a bit more lazy and used "trashed" credit card numbers to get free phone calls... They were looking in some restaurant's trash can to get them... Not exactly hi-tech but working nonetheless :-)
wiz21··on Show HN: Richard Dawkins’ Biomorphs Implemented in JavaScript
this reminds me of W. Latham

https://www.youtube.com/watch?gl=BE&v=AN6ngsckRZs

wiz21··on Python 3 is killing Python
Maybe there are thousands of unported stuff but frankly, how much of that is useful/ready for production use (production=paid software with bug translating to losses) ? I'm perfectly fine with Pyside, SQLAlchemy, ReportLab and a bunch of few other things. I don't need the n-th lib with half baked, unicode broken, poor error handling, non portable, Disney-tested stuff. So, if only 10% of the libs have moved and those are the production quality stuff, then fine. What a useless article.
wiz21··on ‘Alien’ creator H.R. Giger is dead
Although well know for Alien, Giger actually made tons of other stuff (including several bars !). Here's a good book about him that I've read :

http://www.taschen.com/pages/en/catalogue/art/all/01777/fact...

wiz21··on OpenBSD has started a massive strip-down and cleanup of OpenSSL
I don't know much about OpenSSL but what I know for sure is that refactoring the code itself might not be enough. There must be some process involved to keep track of what was refactored, what was not, enforce rigorous testing, systematically review the code, and make sure all of that is publicly available (when I look at the website, that information is nowhere to be found)
wiz21··on Why 'Passive Income' Is A Dangerous Fantasy (2011)
Tsss.. I'm alwyas disturbed by such analysis. See. When you buy a house, not even an investment, you get a place of your own which gives you quite a peace-of-mind (you know where you live, you can break some things inside it without fighting the landlord and should things go really bad, you can still sell it). Moreover, moving around when you have children is much more difficult (because those little kids like to have their friends). Etc. Not every body is made to follow his work wherever it is. There's a reason why humans settled and stopped being nomads.
wiz21··on The real reason we’re upset about Sparrow’s acquisition
I think there's software and software. Software for the masses, that adresses the masses needs, well, hello commoditization. Now there's another job which is to tell people with bucks how to make more bucks with computers. If they have 10 bucks, well, your value will be in the range of 1-2 bucks. If they have one billion, then you might help them a bit more and grab the money. The only one who make money with the masses are Apple, Google and the like. Except a few really complicated things like Amazon, PayPal or really "sweet spots" like facebook, I'd think the probability to have a deal is super low. So what's the solution ? Well I don't know. I guess we won't be able to advertise things ad infinitum... So we'll be back to added value sooner or later.
← PreviousPage 3 of 4Next →