Better HN
topnewbestaskshowjobs
Log inSign up

terlisimo

355 karma · joined Apr 16, 2011 (15y ago) · 84 submissions

Submissions

comment 2w ago · link · parent

seems to me like having a chatbot is the 2020s version of the 2000s "having a website" or 2010s "having a facebook page"

except it's worse, if you manage to get some info out of it, it could all be just hallucinated, you were told a lie and no one is responsible.

it's like the only purpose is to erect a barrier between the company and its clients.

comment 1mo ago · link · parent

speedcrunch is wonderful but I had this pet peeve with it where it had a hardcoded limit of 5 digits before it drops to scientific notation. Not very useful for shell scripts and programming.

I opened an issue while it was on bitbucket, but the response was something "yeah, that's intentional".

I see they bumped it to 14 digits now.

for years I've had a custom build of it with

src/math/hmath.cpp:

- if (expd > 5) + if (expd > 25)

blessed be the open source!

comment 7mo ago · link · parent

The whole process was deep magic to me before I watched that video. It didn't seem less magical after I've watched it. More so, if anything.

Asianometry[0] has a number of videos on EUV lithography that cover some of the mind-blowing advances in the years since.

Veritasium[1] recently also made a video on the subject.

[0] https://www.youtube.com/playlist?list=PLKtxx9TnH76RYHY7L1YzE...

[1] https://www.youtube.com/watch?v=MiUHjLxm3V0

comment 11mo ago · link · parent

well...

1) GoL is turing complete

2) there are algorithms that calculate digits of Pi or e.

so... yes?

but if I just took any old Pi-digits algorithm and encoded it on GoL, its appearance would not be meaningful or "elegant" to our senses. You're probably asking "what does the shortest/most elegant program to calculate Pi in GoL look like, and does it maybe have some unexpected relation to other mathematical terms like, I dunno, Euler's identity or... Mandelbrot set?" And then you would probably need to answer the question "Well, how would you like the digits encoded and represented?".

All of a sudden your question becomes a bit ambiguous. Or did I misunderstand what you meant?

I mean.... I think I feel what you're asking, like... is there some primal version of Pi that can be encoded in GoL initial condition with as few bits as possible but I'm afraid that the answer is something like "well, that depends on what you mean by [...]"

comment 1y ago · link · parent

One step closer to Managed Democracy.

It's an idea from a video game where AI is spying on your life 24/7 and infers who you would vote for so you never actually need to (or can) vote.

comment 1y ago · link · parent

why not solve it with bash then, just put

#!/path/to/your/venv/bin/python

as first the line of your script, done/done

comment 1y ago · link · parent

> ZFS is notorious for corrupting itself when bit flips

That is a notorious myth.

https://jrs-s.net/2015/02/03/will-zfs-and-non-ecc-ram-kill-y...

comment 1y ago · link · parent

Nvidia drivers are not open source.

Nvidia has open-sourced the kernel module "driver", which recently have been declared stable enough for general consumption.

But the kernel-mode driver is only a small part of what you would call the graphics card driver, and the bulk of it is still very much a proprietary blob.

The true open source driver for NV cards is Noveau[1] which works ok with older cards but is slow to support newest cards and features. Performance, power mgmt and hw acceleration are usually worse or not working at all compared to the official drivers.

[1] https://nouveau.freedesktop.org/FeatureMatrix.html

comment 2y ago · link · parent

I hear ya, that sounds familiar.

The amount of deliberate damage anyone on my team can do is pretty much catastrophic. But we accept this as risk. It is appropriate for the environment. If we were running a bank, it would be inappropriate, but we're not running a bank.

I pushed back on risk management one time when The New Guy rebuilt our CI system. It was great, all bells and whistles and tests, except now deploying a change took 5 minutes. Same for rolling back a change. I said "Dude, this used to take 20 seconds. If I made a mistake I would know, and fix it in 20 seconds. Now we have all these tests which still allow me to cause total outage, but now it takes 10 minutes to fix it." He did make it faster in the end :)

comment 2y ago · link · parent

The abbreviated story I told was perhaps more dramatic-sounding than it really played out. I didn't just say "Nothing." mic drop walk out :)

The client was satisfied after we owned the mistake, explained that we have a number of measures in place for preventing various mistakes, and that making a test for this particular one doesn't make sense. Like, nothing will prevent me from creating a cron job that does "rm -rf * .o". But lights will start flashing and fixing that kind of blunder won't take long.

comment 2y ago · link · parent

I agree.

I didn't want to add a wall of text for context :) And that was the only time I've said something like that to a client. I was not being confrontational, just telling them how it is.

I suppose my point was that there's a cost associated with increasing reliability, sometimes it's just not worth paying it. And that people will usually appreciate candor rather than vague promises or hand-wavy explanations.

comment 2y ago · link · parent

A personal anecdote:

One of my guys made a mistake while deploying some config changes to Production and caused a short outage for a Client.

There's a post-incident meeting and the client asks "what are we going to do to prevent this from happening in the future?" - probably wanting to tick some meeting boxes.

My response: "Nothing. We're not going to do anything."

The entire room (incl. my side) looks at me. What do I mean, "Nothing?!?".

I said something like "Look, people make mistakes. This is the first time that this kind of mistake had happened. I could tell people to double-check everything, but then everything will be done twice as slowly. Inventing new policies based on a one-off like this feels like an overreaction to me. For now I'd prefer to close this one as human error - wontfix. If we see a pattern of mistakes being made then we can talk about taking steps to prevent them."

In the end the conceded that yeah, the outage wasn't so bad and what I said made sense. Felt a bit proud for pushing back :)

comment 2y ago · link · parent

Honorable mention of ATI Radeon 9600 that was soft-upgradeable (via hacked drivers) to 9800 PRO for a 200% perf boost. Good times.

comment 2y ago · link · parent

Apparently not.

In my first attempt I've actually deleted the directories altogether but later wanted to scan a system manually and I couldn't repair the installation and get WD to run again.

comment 2y ago · link · parent

I've tried once but windows tries really hard not to let you do that.

My Windows kung-fu is rusty these days so the Linux method seemed neater.

comment 2y ago · link · parent

My preferred way of disabling Windows Defender is to boot Linux, mount windows partition and rename windows defender directories to *.disabled or whatever.

Example (assuming it is mounted at /mnt/ntfs):

mv "/mnt/ntfs/Program Files/Windows Defender" "/mnt/ntfs/Program Files/Windows Defender.disabled"

mv "/mnt/ntfs/Program Files (x86)/Windows Defender" "/mnt/ntfs/Program Files (x86)/Windows Defender.disabled"

mv "/mnt/ntfs/ProgramData/Microsoft/Windows Defender" "/mnt/ntfs/ProgramData/Microsoft/Windows Defender.disabled"

Antivirus service fails to start and that's about it, no other side effects.

To revert just rename back.

I have dual boot set up, but I believe the Ubuntu USB install image supports NTFS.

comment 2y ago · link · parent

There is a name for this https://en.wikipedia.org/wiki/Swiss_cheese_model

comment 2y ago · link · parent

Mandelbrot set calculation is a curious intersection of math and computer science. I went down that rabbit hole once :)

Naive implementation is easy, but there are many ways to improve performance.

comment 2y ago · link · parent

Oh, wow. This is beautiful. Thank you for this music discovery.

comment 2y ago · link · parent

I had these two dual-18-core xeon web servers with seemingly identical hardware and software setup but one was doing 1100 req/s and the other 500-600.

After some digging, I've realized that one had 8x8GB ram modules and the slower one had 2x32GB.

I did some benchmarking then and found that it really depends on the workload. The www app was 50% slower. Memcache 400% slower. Blender 5% slower. File compression 20%. Most single-threaded tasks no difference.

The takeaway was that workloads want some bandwidth per core, and shoving more cores into servers doesn't increase performance once you hit memory bandwidth limits.

comment 3y ago · link · parent

Wow. That's pretty insane. In a positive way :)

comment 3y ago · link · parent

He probably meant this fork https://dosbox-x.com/

comment 3y ago · link · parent

I've witnessed a few sustained (hours/days long) DDOS attacks that were straight up extortion: owners contacted with "give us money or we will keep your site offline".

Most of the time I see attacks lasting 15-20 minutes. I'm assuming it's either someone doing it "for the lulz" or some cyber warfare outfit testing their big guns.

I always consider the possibility of someone using DDOS to mask a more sophisticated attack.

comment 3y ago · link · parent

cheesecutter apparently also supports dual sids: http://chordian.net/c64editors.htm

comment 3y ago · link · parent

Oh, wow! Such a compact cpu routine! Thanks for the link.

I wrote mine in C too and it's basically a 1k line switch statement for every 6510 instruction :) I went the extra mile and made it cycle-accurate though.

libsidplayfp is probably the best emulator out there. It actually emulates voltage levels at one stage. The wiki has a bunch of info on SID reverse engineered from die shots https://github.com/libsidplayfp/SID_schematics/wiki

comment 3y ago · link · parent

To be fair, nobody called c64 music "chip music", it was just "music/tunes" because c64 music is really just code so in a way all of it was chip music (excepting some digi tunes).

The term chip music was coined on amigas and newer computers to differentiate it from regular sample based music.

comment 3y ago · link · parent

> also the 6510 CPU and even some of the C64's CIA timers

yes, but also the VIC timers and the PLA. So basically you need all of the c64 chips emulated, at least in part :)

I wrote a simple SID player for fun and I feel like it's 20% shy of being a full c64 emulator, all it needs is video output and keyboard/joystick input.

comment 3y ago · link · parent

Yep. A ton of proprietary software (like anything from IBM) supports only RHEL or SLES.

If you open a support ticket and say "Hi I'm using Debian/Arch/Nix" they will just laugh and close the ticket.

comment 3y ago · link · parent

The main difference is that creating a 100% perfect copy of a game costs next to nothing, and creating a new 100% perfect copy of model T is almost impossible, even if you have one to copy it from.

comment 3y ago · link · parent

> you’ll never count to “orange” - “orange”

Ok but I don't see how that relates to the idea of storing sequences of numbers (the basic function of a filesystem) in Pi. Orange is not a number so it doesn't make sense to look for it in any sequence of numbers. "Orange" can however be represented as a sequence of ASCII characters, and if every sequence of numbers is contained in Pi, then an ascii representation of any string can also be found.

> This will get large very quickly.

Right, but here's a thought...

Suppose the place in Pi where your sequence is located is huge. You could maybe (probably) find a sequence earlier in Pi that is a pointer to your actual location :) So the metadata would need like 3 things to make this work. 1) length of your data, 2) checksum of your data and 3) pointer into Pi. If hash of (pointer+length) doesn't match checksum, it's a pointer (which may point to a different pointer etc).

That might make it compress a bit better. Although you may need huge amount of RAM just to dereference the pointers.

123