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

> However, the older I get the less enthused I am about having to play around with config files...

I'm in my late forties and I don't play with config files a lot because... Once X11 / Awesome WM is set up it is set up, well, for years. Literally years. Does not move: not a iota.

At times I've had my "workstation" (just a big PC) with an uptime of 6 months. 6 months of uptime, for a desktop. That's how stable things can be. (I had my reasons for leaving my computer up at night for one of its core was computing something: but that's not the point... The point is these Linux and BSDs can be so stable you can, if you want and kernel security patch excepted, easily reach one year of uptime).

My current desktop PC is six years old and I'll soon buy a new one and I'll reinstall everything from scratch: I've got notes and may need to "fight" new hardware and whatnots for a few hours (if I'm unlucky) but then hopefully I'll be good for another six years?

The thing is: if you don't like tailoring your system to the way you like it to work, then you're forced to use the way others thought it'd be best for you...

So, sure, it may be a bit more work than a Windows or OS X machine, but the stability and uptime is also on a whole another level.

comment 5y ago · link · parent

There was one worse: the one that came with the BASIC on the Atari 2600. And this was actually my first "computer" on which I wrote BASIC programs: an ATARI 2600 console.

The BASIC cartridge was coming with some kind of keyboard controller that you'd plug in the 2600's joystick ports.

It was horrible but it allowed to do simple programs and even draw colored lines etc. IIRC.

comment 5y ago · link · parent

This and GP: I do totally remember. Was a major pain but at the same time it felt like complete magic once you see the program running (even if, even for back then, it was often really bad). I didn't know how to program anything else than some BASIC yet, so it was a bit frustrating that these lines of data were just looking like random numbers, impossible for my 11 years old self to understand.

Now because I was a bit evil, when on summer camp (without my Atari 600 XL) I'd create small BASIC programs and mail them (snail mail, obviously) to my mom with accompanying instructions and SHE had to enter my program. Then I'd phone her and ask her what the program did : )

comment 5y ago · link · parent

> - I've never seen xrdb used outside of terminal configuration

Terminal and Emacs are the two I'm using it for.

comment 5y ago · link · parent

> 2. Browsers. The state of browser memory management is atrocious. Just about every time I've run out of memory (other than compiling some complex software with -O3) it's been because my browser is hogging a huge chunk of it

> Modern browsers are not good "desktop citizens", if you will. They hog memory to the point where opening anything new will create a pressure stall.

I went the ballistic route: most of my browsers run inside local Docker containers, on which I put CPU and RAM quota.

It's my machine: I decide how "citizens" behave : )

comment 5y ago · link · parent

What really surprises me is how in bad faith the PoW miners are acting. Ethereum was, from day one, planning to transition to PoS once the research and proof-of-concept was working. If anything the Ethereum PoW miners have been very lucky in that Ethereum is kinda late on its roadmap to switch to PoS (at least compared to when first announced).

comment 5y ago · link · parent

What's posted on social networks makes you feel like we live in a time of literate hegemony?

comment 5y ago · link · parent

> The digital files may have been taken from the CD since nobody can be bothered to go back and find the masters anymore.

All my music collection is FLAC files, bit-perfectly ripped from my CD collection. So, sure, they're digital files, compressed, but lossless. It is, for all practical purposes, just as good as a CD (as long as my external DAC is as good as the CD players' built-in DAC).

The original CD may have been badly engineered but that's another topic.

3 000 CDs fits in more or less 1 TB in lossless (but compressed) CD quality (just to give an idea of how tiny it is using modern storage standards).

Some people only use FLAC as archives but these files are so tiny in this day and age that I don't bother converting the FLAC to mp3s: I sent directly the bitperfectly ripped FLAC files to my DAC / stereo setup.

comment 5y ago · link · parent

You're bringing in the moms... Does yours read HN?

A certain audience does enjoy technical hints and explanations. Heck, ImageMagick / convert are part of quite some workflows on servers...

comment 5y ago · link · parent

Well he didn't say he was using Emacs with the default keybindings.

Emacs' evil-mode is used by many Emacs users who prefer modal editing...

comment 5y ago · link · parent

> So I've just been syncing my entire .emacs.d folder.

That's one solution.

I've got mine under Git. It's a bit more "work" in that when I upgrade packages (which I don't do all the time) I need to commit what's been deleted/added but I can at any time go back to any past working setup.

Then I just use Git across user accounts / machines to synch my Emacs setup.

Others are using Nix.

> Each time I update all packages something new breaks...

Don't know what's the "proper" way to do it but I upgrade packages manually and never all at once. That is: I never start from an empty Emacs. There are some tradeoffs I guess but I never have to track down which package is problematic and reverting is basically checking out the last commit.

I'm not saying it's the best way to do it but it just works.

comment 5y ago · link · parent

Oh totally: I'm not using them and much prefer my modern setup and its 3840x1600 monitor ; )

I just found these old machines of mine in a garage during the first Covid lockdown and decided to try them out and found out they were still working (still had an old CRT TV laying around).

comment 5y ago · link · parent

> I’m glad I still have it, and the Spectrum and Amiga’s that followed.

I wonder how many of us still have them all... I probably sound like a broken record at this time but I still have my Atari 600 XL, Commodore 128 (which I was only using in C64 mode) and Commodore Amiga.

The 600 XL and 128 are still working and the Amiga is probably easy to fix.

comment 5y ago · link · parent

> As someone living in the European Union I'd be extremely surprised if bitcoin isn't taxed/regulated to death within 1-2 years here.

The EU has no fiscal competence, this is left to the individual states.

I don't think much Bitcoin mining is done in the EU? Much of the EU has the most expensive electricity in the world.

From a fiscal point of view the taxation of cryptocurrencies depends on each nation. Many have already decided, by law, how to tax Bitcoin and cryptocurrencies. For example in Portugal if I'm not mistaken Bitcoin is considered a currency and gains made on currencies are not taxed. In other countries it's considered capital gains. Etc.

None of it is harmonized.

The EU simply doesn't have the authority at the moment when it comes to fiscal matters (it's the same for taxes on cars, gold, jewelry, whatever).

The EU probably can issue a rule banning mining using proof of work in the EU that'd then have to be translated into national laws: but I don't think that'd change anything.

Banning mining in China, however... That one would probably have consequences.

comment 5y ago · link · parent

> What’s a digital currency without mining...

I take it GP meant mining without gigantic electricity consumption: so not proof-of-stake but proof-of-work

> ... and how does it differ from regular fiat money today?

There was a discussion here a few days ago where people were trying to determine how many swiss bills were circulating... Someone commented on the irony, in a thread hating on cryptocurrencies, that anyone at anytime can know exactly how many, say, Bitcoin or Ethereum do actually exists.

There are other difference between government issued money and cryptocurrencies: for example some cryptocurrencies have a fixed, carved in stone, supply curve and so you can know beforehand exactly how many are going to be mined each year.

This is quite different, for example, from Venezuela's bolivar: Maduro just announced that 1 000 0000 bolivian bills were going to be printed now.

comment 5y ago · link · parent

> Do people actually build large codebases with the 'hash map first' approach?

There are a few large projects written in Clojure. I'd say it's a "data first" approach, not uniquely "map first".

There's this famous 4 minutes rant by Rich Hickey (the creator of Clojure) where he talks about maps and about how Java does OOP (and how maps are served through getters but you can't see easily that they're maps), it's golden:

https://youtu.be/aSEQfqNYNAc

comment 5y ago · link · parent

Nice trick!

I also shaved 35% of my "time to CIDER REPL" by passing a few parameters to the JVM (-client, -Xverify:none, plus two tieredcompilation-related settings I copy/pasted).

comment 5y ago · link · parent

> It's a bit surprising they didn't get into the whole "hygenic macro" business...

Slight typo but it's "hygienic", not "hygenic" AFAIK.

comment 5y ago · link · parent

> So now we need human judges to judge what the intention of a smart contract is?

Well, wouldn't it already be quite a win if for 99.9% of the smart contract out there no human judge was needed?

It's an honest question: ain't it unthinkable that most could be fully automated and yet real courts could be used in rare cases and that that'd be already be quite an improvement? Or is the system only working if 100% of the time no human ruling is needed?

I have no idea...

comment 5y ago · link · parent

So basically an homograph attack, in this case to dodge code reviews?

This reminds me of Bruce Schneier's article "Unicode is too complex to ever be secure", except in this case ASCII too apparently ; )

Which makes me wonder: for such sensitive programming languages, shouldn't the specs be much more restrictive and for example only allow 'A' to 'Z' in variable names, no digits, no lowercases, etc.?

comment 5y ago · link · parent

> I recall there being an issue with double.GetHashCode() in the early versions of .Net, where it would return different hash values for 0.0 and -0.0.

I never thought about that (I avoid FP as much as I can) but, oh boy, the can of worms!

.Net (or Java) OOP where an object's hashcode needs to give the same (or not?) value for 0.0 or -0.0: this is the kind of stuff nightmares are made off.

I'm sure this can be turned into some very funny "Java puzzler".

comment 5y ago · link · parent

> When they do it's often a mistake, like for currency.

The most beautiful FP bug I remember was a denial of service in some webservers where by setting the header "Accepted Language: en-gb;q=0.3 en;q=0.8 ..." to a specific value you could send the official Java floating-point parser in an infinite loop (and this affected several Java webservers).

So at each webpage request, you were sending one CPU core of the webserver basically busy-looping. Hence crashing the webserver in a few requests at most.

Now it'd be heresy if I were to say that maybe, just maybe, had the standards mandated to use 0 to 100 for weighting instead of 0 to 1.0 we could have dodged a whole source of potential issues!?

No, no, I realize this is heresy: let's all keep using numbers that cannot even be represented correctly (except as strings), parse those strings into something approximately representing what's written in the string, then make more approximation errors while doing computation with these numbers, propagation errors, epsilon estimation errors, and keep insisting we all could have authored "What every computer scientist should known about floating-point numbers" (which is 80 pages long and, well, approaching a treaty) ; )

/rant off

comment 5y ago · link · parent

> An (increasingly rare) person from a single-kid middle class home is not only a social minority, but has to create more of their own opportunities because they are an outsider to both societies.

I don't follow: is a single kid from a middle class family an outsider to kids from other middle class families where they have 2 or 3 kids? I mean, I understand that middle class is neither rich nor poor, but what's the difference for a unique child compared to middle class families with serveral kids?

Do the siblings typically provide opportunities for their brothers/sisters? (I'm personally launching atm a new endeavor with my brother but I don't see that as particularly common).

comment 5y ago · link · parent

> He didn't claim it is broken.

But then there's that line: "This destroys the RSA cryptosystem" in the abstract of the paper.

comment 5y ago · link · parent

I am no cryptographer. I did implement, from the paper, Yao's "socialist millionaire" cryptographic protocol but... It was only a few lines of code and a very simple (to understand, not to come up with) paper.

Now I just looked at that Schnorr paper and, well, I can tell you that I'm not going to be the one implementing it : (

comment 5y ago · link · parent

> 2^36 "operations" can still take a lot of time if each operation is multiplying two giant number

It took me 3.3 years of actual computation time to do about 2^46 multiplication+modulo of two 2048 bit numbers on a Core i7. 2^36 of 2048 bit numbers should be doable in a day on an eight years old CPU.

P.S: that was on a single core, for the problem I solved was explicitly created as to not be parallelizable.

comment 5y ago · link · parent

Ron Rivest explains himself that once in a while he gets an email from someone saying basically "I broke RSA": not everyday but it's a semi-regular occurrence. And he always nicely answers by asking the person claiming to have broken it to solve a challenge (and it's not even a crazy high number of RSA bit keys he gives).

Theory is nice but if you can find the solution to something, just do it and then brag once it's done : )

comment 5y ago · link · parent

> Happy to answer more questions...

Does these kind of solutions work for every cryptocurrencies? For example does is support Bitcoin? Or is this something that needs some kind of smart contract like those provided by Ethereum?

And another question: what about optionally fully anonymous transaction as in ZCash, does the scheme work to sign tx done using ZK proofs too? Or fully anonymous ones, like David Chaum's upcoming "xx coin"?

comment 5y ago · link · parent

> ... of even just your mouse cursor reacting instantly to your movements.

But you probably haven't, except in, well, games?

> 60hz is far from smooth, and that number is a leftover from days past, not what is actually optimal or good.

Well it would already be wonderful if we actually had 60 Hz in modern application / devices, including 16 ms response time. I fired up an old game the other day on my arcade cab (CRT screen), some shoot'em up game, and it was silky smooth. I'm pretty sure it was "only" 60 Hz but it was constantly 60 Hz: any input with the joystick or buttons had results the very next frame.

This felt so much smoother than any of the army of modern devices I'm using on a daily basis: even if they can animate stuff at high refresh rate, the latency before the animation starts is what makes using them painful.

Refresh rate is a thing but so is the latency between when your input and when, visually, it produces a result.

I've seen people working on ports from old arcade game where they'd record using high-speed cameras LEDs physically hooked to the joysticks/buttons to make sure that "input at frame x means response at frame x + 1". Short of that your app very probably is not responding in 16 ms or less, unless you really know what you're doing.

There was this famous rant by John Carmack where he lamented that on PCs it was faster to do a transatlantic ping than to push one pixel to the screen: I don't know how far we've gone, but when I compared modern devices to my old arcade cab and it's measly 60 Hz (but 16 ms latency), I'm still not impressed.

A 120 Hz or 144 Hz or 240 Hz is no good if it takes 35 ms between when you move the mouse and when you see the results on screen: that's not "120 Hz" but 30 Hz. And 30 Hz feels laggier than an 35 years old arcade cab: it is that shameful. 35 years and still feeling more responsive than any productivity app.

I remember a recent tool posted here (I think for OS X: maybe an editor) here by someone who was fed up with this extreme "input lag" and was guaranteeing his program would be answering in less than 16ms (maybe was it 24ms, don't remember exactly). But that is an exception.

I think you're highly underestimating how smooth 60 Hz already is when there's no input lag. Now, of course, I'm taking 120 Hz or more any day over 60 Hz but we should very badly focus on input lag too.

And, sadly, we live in a world where I'd scientifically guesstimate that 99.99% of the programmers are totally unable, due to limitations of their tools (do they have high speed cameras and can they prove how fast things are pushed to the screen?) / knowledge (I'm not John Carmack and modern software stacks sure seems complicated) / languages (let's not start a flame war) / mindset (never optimize anything / 100 MB JavaScript downloads are fine, etc.), to push anything to the screen in 8ms or 4ms.

Except for top-notch game programmers working on AAA titles.

So 240 Hz monitors, sure: bring them up. But bring me too the programmers and tools needed so that in 4 ms I'll see the result of my inputs.

comment 5y ago · link · parent

Yeah. During the lockdown I was stuck by "chance" alone at my parents' old house, the one were I grew up. I found my old C128 (which I'd use in C64 mode all the time) and cleaned it, cleaned its disk drive, cleaned my floppies and tried them. To my surprise about 2 out of 3 were still working (they're a bit more than 30 years old). Heck, I even found a "New In Unopened Box" of 5"1/4 floppies and started making a few copies of some of the disks that were still working (out of boredom and curiosity more than to save data).
1
155156157
162