HackerTrans
TopNewTrendsCommentsPastAskShowJobs

joosters

no profile record

comments

joosters
·geçen ay·discuss
I was hoping that this would talk more about the logic behind generating a diff, rather than the optimisations involved in rendering the text.

IMO (as someone who doesn't have to deal with the actual rendering) it would go a bit deeper into talking about deciding how to show what has changed. There's a lot of improvements that could be made there. e.g. "whitespace has changed here" so there's no real code changes involved.

Or "this big list of imports has changed, and code formatting has line-wrapped the list into different lines" - gitlab for example copes poorly with this. I'd love to just see a clean diff that highlights the additional import, and not just ten lines of changes caused by adding one line to a big list of imported symbols/functions.
joosters
·3 ay önce·discuss
I think the more relevant point is:

But almost all social networks and search engines won’t let you advertise without a license from the required jurisdiction.

Which is a good thing! This is an area full of scammers, if you can't set up your business legally, I'm very happy to hear it's more difficult for you to advertise it.
joosters
·3 ay önce·discuss
It's really annoying. I have a sudoku game on my phone, works great but give it internet access and it's suddenly full of sketchy adverts.

If I'm playing it on my commute, it's usable with mobile data disabled for the app. But when the train stops in a station long enough to auto-connect to wifi, immediate full screen adverts :(
joosters
·4 ay önce·discuss
Lionel Hutz

Works on contingency

No money down

Always the best example for missing punctuation!
joosters
·4 ay önce·discuss
Awesome to see a perl JIT. I love perl, and it's exciting to see something that tries to offer good-enough compatibility to run most perl code.
joosters
·4 ay önce·discuss
https://archive.org/details/1066allthat00walt/page/n5/mode/2... for anyone who'd like to read it.

Embarassingly for me, while the book advertises that it contains '2 genuine dates', 1066 is the only one I can remember.
joosters
·5 ay önce·discuss
Re: OpenClaw in particular, I had never realised that simply getting lots of stars on Github meant that your project was actually a success...
joosters
·6 ay önce·discuss
From the parent comment:

because of OS-level overcommit, which is nearly always a good thing

It doesn't matter about the language you are writing in, because your OS can tell you that the allocation succeeded, but when you come to use it, only then do you find out that the memory isn't there.
joosters
·10 ay önce·discuss
Oxbridge have never had to 'let in dumber people'. They are always heavily over-subscribed, and give offers to a small fraction of the people who come for an interview, let alone apply.

The whole point of the interview process is to assess not just the applicant's past achievements, but what they might be able to achieve if they got their place at the uni. Part of that is looking at the applicant's background, and knowing that even if they aren't currently at some elite high-fee school, they might still have the ability and capability to do well.

I am all in favor of this style of selection. The dark old days of "this kid's dad went to our college, we should do them a favour and let them in" are long gone, thankfully.

Can you point to any kind of evidence that Oxbridge are dumbing down their teaching, or lowering their standards of teaching? I doubt it.

Full disclosure: cambridge alumni, from a state school!
joosters
·4 yıl önce·discuss
40 years later, trying to get something running on a modern Mac is painful

Right click on app, select ‘open’. If you get a prompt warning about an unknown developer, pick the option to run the app anyway.

Getting angry about a prompt that you only ever see once (it won’t prompt you again) seems extreme.
joosters
·4 yıl önce·discuss
… i.e. ‘There are even people who ordered in 2017 who still haven't got their phones’ is completely accurate.
joosters
·5 yıl önce·discuss
Poly Network has asked digital asset exchanges and miners to block any tokens coming from the above addresses [...] Tether froze more than $30 million in response to the hack

Decentralized finance at its best - so decentralized that individuals and centralized companies can decide to block transactions by themselves.
joosters
·5 yıl önce·discuss
The flower shop staff were looking out for him, after all he is their favourite customer :-)
joosters
·6 yıl önce·discuss
Smart meters in themselves don't do anything to save energy. However, they make your energy consumption level more visible, which in turn might encourage you to use less electricity.
joosters
·7 yıl önce·discuss
> That said, even on Linux allocators will return NULL when they're just out of address space; there's no overcommit going on there.

Try calling fork() in that process then. By rights, the new process should inherit its own copy of all the address space of the old process, and is free to overwrite it with whatever it wants. Linux (by default) won't stop fork() from failing on a process with N GB of RAM and total memory(+swap) < 2N GB, yet there simply isn't the memory around for both processes. There's your overcommit.
joosters
·7 yıl önce·discuss
That's not a problem with NFS, that's a fundamental issue with computers. Things fail. Nothing protects you from losing data, your local log-structured filing systems won't save you either. They'll help you protect an existing state from corruption, but they don't protect you from loss.

That new request you just received when a hardware failure occurred? Say goodbye to it, you've no way of ensuring it will make it to storage when the disks have caught fire. Later on, when you've put out the blaze, all that algorithms can do is tell you when things started to get lost.
joosters
·7 yıl önce·discuss
It's the transparency of memory allocation that makes it so difficult to deal with failures. Even 'trivial' library functions could allocate memory, hell even calling a tiny dumb function might cause the stack to require a new page of memory, leading to failure. Just checking that all malloc calls check for NULL isn't even half of it.

Exception handlers won't save you either. Unless you consciously consider every memory allocation failure, your exception handlers will be too high level and result in your program either aborting by itself or becoming unusable. Did you pre-allocate enough resources to pop up an 'out of memory' error window? Good luck failing gracefully.

Memory allocation is special.
joosters
·7 yıl önce·discuss
Actually, I'd say that if malloc (or equivalent) returns NULL then the system really is out of memory. Every general-purpose memory allocator is going to contact the OS to ask for more memory if it doesn't have anything free in its own buffers.

But... it's still no good saying 'make your program behave nicely when malloc fails' - even if your own code is perfect, what are the chances that every library you use does the same thing? And even then, Linux by default will optimistically over-allocate memory (and rightfully so!) - with the result that you'll never catch every out of memory condition.

IMO, 'out of memory' is not a property that each single process should try to manage, rather it should be the OS or some other process with a global oversight that monitors memory usage and takes measures when memory gets tight.
joosters
·7 yıl önce·discuss
Yes, but ideally you want to be throwing some ‘memory pressure’ signals before absolutely running out of memory, so that programs can take simple actions like emptying caches, etc.

Catching an otherwise-fatal out-of-memory fault and recovering would be too complicated / bug-prone.
joosters
·9 yıl önce·discuss
'Regular old police work' might well be good enough to hunt down a drug seller or even a whole marketplace.

For example, a vendor was recently caught because of the packaging they used when posting drugs: http://www.k5thehometeam.com/story/35528504/affidavit-reveal...