Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,590 karma · joined Dec 4, 2013 (12y ago) · 4,855 submissions

email: I'll add a suitable email one of these days
Submissions

comment 5y ago · link · parent

The halting problem in Ethereum is "solved" (more like "dealth with") by a very simple technique: every EVM instruction has a cost and you have to provide "gas" to run your smart contract. If you don't provide enough gas, your contract call has zero effect and all the gas you paid is lost.

A contract call that would misbehave is guaranteed to halt: not by itself, but by the EVM, which, when the contract call eventually runs out of gas, shall take care of halting it.

It's pretty nice I'd say.

comment 5y ago · link · parent

They say "cannot be compromised by legal orders" and they say they are bound by and only by swiss laws.

Maybe what they mean is that the swiss authorities have no legal basis on which to force them to serve a modified, backdoored, client like the one you're talking about.

comment 5y ago · link · parent

> These houses are constructed entirely by companies (or people) for that purpose alone.

So private companies are allowed to engage in rent-seeking behavior but individuals aren't?

comment 5y ago · link · parent

That is not the point. There's the legal system. Then there's morality and how you raise kids. If the parents act like these, they shouldn't be surprised they're raising little filthy thieves.

In other words: parents raising kids giving them values like respecting the private property of others (no matter if it's actual physical gold coins, a bicycle, Bitcoins or whatever really) probably wouldn't use such pathetic tactics to try to dismiss the case. But the real point is: parents raising kids with actual values probably wouldn't be raising scummy thieves in the first place.

comment 5y ago · link · parent

Oh my goodness! I spend countless hours using LZEXE back in the days and never made the link. I never realized it was made by Fabrice Bellard!

From his homepage:

> "I wrote LZEXE in 1989 and 1990 when I was 17."

Incredible.

comment 5y ago · link · parent

It was more than 20 years ago so I don't remember: quickly skimming through it I don't think so. I still have emails somewhere I exchanged back then with the dev who wrote the article so I may be able to find the date.

But in any case: the technique ain't new.

comment 5y ago · link · parent

Yup it is well known since a long time. Fun fact: I discovered that technique myself around 1991 (and still have the ASM + C source code for the DOS game using it). The first time I remember it publicly described was on the GamaSutra website in a post-mortem for the first "Age of Empire" game. GamaSutra was/is a big deal among game devs so the technique became "famous" when that post-mortem was made.

I wrote about it in a thread here called: "Why bugs might feel “impossible”" about two months ago and someone commented that the game TerraNova (from 1996) had a fully deterministic engine.

BTW TFA say StarCraft 2 (2007) used the technique but Warcraft 3 (2003) was already using a deterministic engine. Save files for Warcraft 3 games (including multiplayer ones over the Internet) consisted in only recording the player inputs and the "tick" at which they happened. This make for tiny savefiles, even for very long games.

So basically: several of us independently discovered that technique in the nineties. There may have been games in the eighties already using such a technique but I don't know any.

https://news.ycombinator.com/item?id=27517074

comment 5y ago · link · parent

> Anybody remember those "organizer" gadgets, with a screen and a calander and notes, but not a phone? I got one of those and didn't really use it for anything useful.

Older, I guess, but I still have an Atari Portfolio from 1989 or so. It still works but I don't use it anymore ; )

https://en.wikipedia.org/wiki/Atari_Portfolio

comment 5y ago · link · parent

And what does your partner think?

> 2. ... an 'adequate' house in London would cost at least 10 times my salary.

Then buy outside of London something much cheaper, save a shitload and retire early, while keeping that well paying job.

> 3. London is a horrible place to live. I have no affinity for it whatsoever. Even if I could afford a house I would not want to live here.

It is a known fact that there are many people working in the city who live outside of London, nearby a train station, in the fancy suburbs: in the morning they go to the train station by car (which takes no time because they of course pick a quiet place with no traffic jam) then they go to the city by train. The parking lots of these train stations are, during the working days, full of Bentleys and Porsches and whatnots, which gives it away.

Would that be an option? (not the car type: the suburb near a train station)

FWIW in Brussels there are people doing exactly the same: living in the fancy suburbs (like the posh Waterloo suburb) and dodging all the traffic jams thanks to the train, while enjoying the high paying job (compared to the median salary in Belgium) the city offers (cough European institutions cough cough).

My father-in-law, now retired, did that for 20 years: working on the trading floor for a big bank in Brussels, 1 minute walk from the train station, then going back to his on the countryside...

I'd say it's not just extremely common: it's also very smart. You do away with the traffic jams, do away with the city stress, do away with the real estate price, can save more, etc. All the while enjoying birds chirping and squirrels at home every single day.

> 5. My parents, like most boomers, had a much better standard of living when they were my age. My father had a pretty average salary, bought a massive house for a reasonable price, and saw his wealth multiply many times over. It's not like that for my generation.

Common' now... If you work as a quant in the city, I'm sure it can be like that for you.

I don't like the city either: any city. Not my thing. Lived in a city (not London) for 40 years, it's enough. A few years ago I moved outside the city and I love it.

comment 5y ago · link · parent

There's zero Tesla hate here and certainly zero EV hate here, on the contrary: I just feel the interior build quality on the Tesla could be a bit better but I'm sure they'll get there.

I wouldn't want my, strangely enough upvoted a lot, comment, to be mistaken for Tesla hate. I like what they're doing. I just think the auto-pilot shouldn't give a false sense of security.

> I've not hit animals and dodged random things rolling/blowing into the road at a moment's notice.

> I don't think it's possible to avoid all car crashes no matter how well you drive.

Same here... And animals are my worst nightmare: there are videos on YouTube just terrifying.

For I do regularly watch crash videos to remind me of some of the dangers on the road.

comment 5y ago · link · parent

Well that's the thing... I haven't published anything yet. I don't even know which blogging platform I'll use. It's on my TODO list though so.. One day.

comment 5y ago · link · parent

> ...hardware collision detection feature of the Master System. This feature triggers a flag when two sprites collide, but does not tell you which sprites collided.

I want to say... WTF!? This is kinda evil, I have no idea and I love it!

> Alf 2: Collision Detection Is Hard, Blog Posts Are Harder

I did semi-recently re-write an amazing collision detection technique I found by myself and used around 1991 (it was fast and flawless) and I even wrote some (Clojure, whatever) code to create "nice looking images" to explain visually the technique. I even started working on the blog post but...

It's not done yet so you have no idea how I agree with this title...

(part of the problem being that I haven't a blog yet. I've got some material: several things I want to write about and the name of the blog and, heck, I wrote entire books in the past so it's not as if writing was that problematic)

comment 5y ago · link · parent

> As long as the resulting package (flawed self driving system + the average driver) isn't significantly more dangerous than the average unassisted human driver...

Shouldn't that compared to "average driver + myriad of modern little safety features" instead of "average unassisted driver"? The one who has the means to drive a Tesla with the "full driving" mode certain has the means to buy, say, a Toyota full of assistance/safety features (lane change assist, unwanted lane change warning and whatnots).

comment 5y ago · link · parent

I drive a lot across Europe: as in, really a lot, long trip across several countries, several times a year. I drive enough on the highways to know a few scary situations, like the truck driver in a big curve slightly deviating out of his lane and "pushing" me dangerously close to the median strip for example.

To me driving requires paying constant attention to the road and being always ready to act swiftly: I just don't understand how you can have a "self driving car but you must but be ready to put your hands back on the steering wheel and your foot on the pedal(s)".

I have nothing against many "recent" safety features, like the steering wheel shaking a bit if the car detects you're getting out of your lane without having activated your blinker. Or the car beginning to brake if it detects an obstacle. Or the car giving you a warning if there's a risk when you change lane, etc.

But how can you react promptly if you're not ready? I just don't get this.

Unless it's a fully self-driving car, without even a steering wheel, a car should help you focus more, not less.

comment 5y ago · link · parent

I should know better (I've got lots of RPis I installed myself) but in this case I really don't know: a friend of mine just dd'ed his working setup on to a memory card.

comment 5y ago · link · parent

Noooo HN, don't get me started again : )

I've got a vintage arcade cab at home, with its old CRT, since a few years now: originally it wasn't a JAMMA cab then someone modified it to be JAMMA because at some point JAMMA "won" in the arcade world. Everything is still working, including the money slots (they're still using old 20 "Francs", belgian coins that is and I still have 4 of these coins). But I wired a button to the pin that adds money: easier/faster. I put one my PCB in "free play" mode too (using dip switches on the PCB itself).

I've got a few original PCBs and some bootlegs, all vintage.

But mostly I'm hooking a Raspberry with a Pi2JAMMA adapter and then I've got thousands of games working (most are crap, some are little gems).

When it's all JAMMA it's convenient: I can just swap PCBs or the Raspberry Pi and turn the machine on and everything just works.

On a semi-related sidenote many criticize old arcade game saying they were "exploitative because you had to put coins" but, honestly, I find that complete bullshit. If you played these games a bit, you could get good at it and finish the game on one credit, playing for 30 minutes or even 45 minutes on one coin.

I can guarantee you: many modern games are much exploitative than these old arcade games. Be it in-game ads or in-game buying or all the A/B testing to make sure its addictive etc.

Another benefit of these old arcade games: they're simpler, which kids do love. My six years old daughter loves our arcade machine and often asks me: "Dad please, can we turn the arcade on?". I don't have to worry about her getting ads or disturbing videos or being spied upon.

Then of course playing Robotron 2084 with two joysticks, as it is meant to be played (no buttons used in that game) is great. The fast-paced action, incredible responsiveness and original controls (one joystick to move in eight directions, the other joystick to fire in eight directions) makes for timeless fun.

I don't play games on PCs / console since a very long time. But once in a while I turn on the good old arcade and play a bit...

It's a great thing to have at home.

Wife loves it: it's in the living room. It has presence too. Visitors typically loves it, even if they're not into videogames at all.

It also doubles as a very convenient laptop stand!

comment 5y ago · link · parent

Oh sorry... I thought the question was about the Emacs ecosystem overall, not just about the core stuff.

comment 5y ago · link · parent

native-comp

LSP support (Language Server Protocol). Basically any language / file format for which a LSP backend has been written can now be used from Emacs.

LSP is not as powerful yet as, say, IntelliJ IDEA for Java development but suddenly the line between "text editor" and "IDE" for Emacs got much, much, much more blurry.

comment 5y ago · link · parent

> With this kind of visas I've always been curious: Unless you're US or Eritrea citizen, does this mean you don't have to pay any income tax at all, given you loose your home country's tax residentship in 183 days after leaving?

If you really become fiscal resident of a country with 0% income tax and the country you left is fine with that then, yes, you pay 0% income tax. I've got a friend who really went to live with his family in Monaco (he was a native french speaker, but not from France, which helps): he's there since five years now I'd say and, indeed, he pays 0% income tax.

comment 5y ago · link · parent

Basically the same here, now I settled on QWERTY with a few tricks to do french diacritic signs. Compose key can be a bit slow at times, so I only use it for the less common characters, like e-circumflex. For the really common ones like e-acute and e-grave I simply assign additional shortcuts: for example hyper+e = e-acute (my keyboard has got additional modifier keys: it's not just ctrl/alt/shift as I've got additional physical keys, which I configured to act as Hyper and Super).

comment 5y ago · link · parent

> Moderna and Pfizer both have comparable (low) risk of hospitalization and death.

You mean if you then get the delta variant? Or low risk of hospitalization and death by simply getting the shot?

comment 5y ago · link · parent

Wait what!? Can't you just reconfigure your .git configs to temporarily use another repo locally?

Seriously: for example copying then transforming any one of your local .git repo to a "bare" repository takes like two commands. Anyone with a Linux machine can do it. Then all the devs can temporarily use that repo to push/pull/whatever.

I think if you're to the point where you're emailing patches, it's worth it.

comment 5y ago · link · parent

Thanks, somehow with the headline I was thinking about imagining the old Cygnus text editor running on a PC boosted at 8.45 Ghz and was intrigued but wasn't too sure what ATA had to do with it!

comment 5y ago · link · parent

This looks like a really sweet monitor at a reasonable price but I'm very surprised it "only" does 1440 pixel vertically: I mean, for such a big screen it's not that much. I'm on a LG 38UC99 (curved, ultra wide, 21:9) since when they came out (a few years ago already by now) and I'm a happy camper. It does 3840x1600, so a bit more vertically, due to a slightly smaller pixel pitch than yours. Overall of course mine has way less pixels.

> I love having my primary reading view centred in the monitor, with secondary stuff pushed to the sides, it’s much more ergonomic and natural imho

Others with ultra wide in this thread mentioned the same. It's how I do it too. The center area is used more than the rest. I often work in a "3 columns of 1280x1600 each" layout.

I'm on Linux so I use a tiling window manager to manage all the windows placement / type of layout / virtual desktops (for in addition to the 3840x1600 pixels I also use about 12 virtual desktops, each always arranged in the same consistent way).

comment 5y ago · link · parent

> Pretty much wasn't until Linux that the PC actually became useful at all.

This. I got lucky to experience a SGI Indy when it came out and although going from my beloved Amiga to a 386 running DOS "because CPU speed" (and because the PC was obviously where it was heading) was a really bitter move. Then a 486. Then I discovered Linux and my 486 + Linux was my "poor boy's SGI Indy". Great memories (and still rocking desktop linux on my workstation on a daily basis).

comment 5y ago · link · parent

> ...what happens when I borrow enough ETH to win blocks, deliberately mis-verify TX...

Ethereum already "slashes" the staked ETHs of those who try to game the system (Ethereum already has one chain on PoS): the coins of stakes who try to cheat the system are not even confiscated, they're destroyed (making every other holder a little bit richer).

I don't know if this shall work or not, but that's their plan to keep bad actors from trying to attack the system.

comment 5y ago · link · parent

Some used to write books using LaTeX a quarter of a century ago and it was pretty much a build system. You'd typically have a little shell script making backups, cleaning the mess from the last build, building the book in x passes (IIRC there was a first pass for the book and a second one for all the references), converting it to another format, maybe opening the result in a viewer, etc.

As for TFA: 640 pages in 15 months ain't bad. Some have a lot of discipline and can write five or ten pages a day, but that's really hard...

comment 5y ago · link · parent

We cannot both lament that software has become so incredibly bloated and high-latency/unresponsive and yet applaud like there's no tomorrow that it's possible to develop for decades without knowing what bit-shifting is nor how to do it...

comment 5y ago · link · parent

> Well, you know that you pay taxes on the country you live & work in ? So you have to find a job and a house in Cyprus.

Remote work? Or own a foreign company and pay yourself in dividends? These are extremely common cases.

> And on top of that, Cyprus is one of the few european countries that are not yet in the Schengen area. So you'll have to stay on the tiny 9,251 Square Kilometers.

That's not how Schengen works: Schengen is about being able to freely travel in the Schengen area without having to even show your passport / national ID card. For example I regularly cross borders, by car, between Belgium, France, Spain, Monaco and Andorra (Monaco is Schengen while Andorra, wonderful place on earth btw, is not, but Andorra has got agreements for free travel with France and Spain anyway) and I've never been asked my ID once. Heck, lately I've always been doing my PCR tests, as officially required due to the sars-cov-2 restrictions, and although it's mandatory to cross borders I've never been asked to show them.

A passport from Cyprus allows you to travel, without the need for a visa, to most countries in the world if I'm not mistaken. The thing is: because Cyprus is an island you'll very often be flying to/from there and you'll have to show your passport. But you're definitely not stuck on the island.

1
150151152
162