Better HN
topnewbestaskshowjobs
Log inSign up

ruslan

643 karma · joined Feb 21, 2007 (19y ago) · 438 submissions

C/C++. Unix. Electronics. HAM. CNC. Ice hockey.
Submissions

comment 1d ago · link · parent

> Unlikely ever going to happen, as even a few kB of magnetoresistive memory hits a significant power draw of almost 0.7W in use.

Strangely the article does not says anything about power consumption. Is that 0.7W/fewKB on reads or writes or both ?

comment 1d ago · link · parent

Great technology, the article states it's cheaper in productions (fewer masks required). So, how much time till we get cheap 1TB MRAM SSDs which last for 20 years ?

comment 2w ago · link · parent

I don't care on what side I'm. When I feel like I write in C++, otherwise I write in C, or in Perl. ;)

comment 2w ago · link · parent

Totally agree!

comment 2w ago · link · parent

I love C more than C++, but I still code in C++ occasionally. I try not to go beyond C++98 syntax (or C++2003). I hate templates, iterators and long namespaces. Basically I don't like STL, though I may use it. I use NULL for null pointers and I use pointers instead of references. I think this style was called "C with classes" back in the days. :-)

comment 2w ago · link · parent

How about vibe-coding your own multi-platform XMPP client first ? The one that suites your needs, that has all the contemporary features and is not a bloat. We all will say thanks to you. :)

comment 2w ago · link · parent

Well, crypt_blowfish() has a number of returns with (-1). I'm not familiar with Blowfish, so it's hard for me to trace the possibility of failure here. But what if in a distant future someone adds more hashing algorithms to the list without possessing historical knowledge of this "never return not 0" ?

* https://cgit.freebsd.org/src/tree/secure/lib/libcrypt/crypt-...

Failing to check result of crypt() in init cannot do much harm, doing so is equivalent of going system reboot (crash init :-)). Besides, whoever has access to system console can do whatever they want with the system, no password can prevent from that.

comment 2w ago · link · parent

> Also check FreeBSD's OpenPAM for a case in point. Even today, it does not check for a NULL return from crypt() and leaps straight to strcmp().

Damn, that's a bug! Please file bug report.

comment 2w ago · link · parent

> but because there's no way in C to force API users to decide what to do if an error occurrs,

0. There are tons of libc functions that return NULL on failure, it is conventional way in C to indicate failure.

1. There's no much to decide, just fail to login if crypt() fails with NULL.

2. errno is standard way in C to check error code of a failing function, but in case of login you hardly need this, just fail!

I totally agree that fixing this issue in musl was a pretty dubious solution. Don't fix what's not broken, fix broken application instead. Publish a CVE if you cannot fix it.

I looked through FreeBSD source code for how they use crypt(), it's checked for NULL everywhere!

UPD: Except libpam. :(

comment 3w ago · link · parent

> Kogan TVs are produced by Kogan.com, an Australian company founded by Ruslan Kogan in 2006.

That's not me for sure. :) But what I'm sure about it that their TVs are made either by Haier or TCL.

comment 3w ago · link · parent

Mine did not have that option. There was some "demo" mode though, but it was useless.

comment 3w ago · link · parent

Recently I've had to deal with this same problem - get a new TV for living room. Personally, I do not watch TV at all, but kids want to see cartoons when having their breakfast. I spent a week reading forums and came to conclusion that best solution would be to buy a "dumb TV" and connect it to a PC I trust, but it appears there are no dump TVs in my rage of 55" and larger. So, I bought "Google TV" based TCL.

When I brought it home, I never connected it to Ethernet or WiFi. Instead, I connected it to my laptop over USB, then using adb I uninstalled almost every application from it. It took me quite some time to figure out what app is possible to remove and what should be kept to let TV functionality to work. I even had to factory-default it a couple of times because some random apps I removed were crucial for Android to work. :) I think it took me 5-6 hours to clean it. Now it has only basic TV functionality like any dump TV does, I can watch air and cable TV channels, watch movies and play music from USB storage. If there's a need to watch something online, I connect it over HDMI to my small mini-PC that runs FreeBSD. I think I'm satisfied with the result. :-)

PS: Yesterday I opened the case and disconnected WiFi antenna. Just in case.

comment 1mo ago · link · parent

Can someone please tell why Linux kernel needs this "early" memory allocator and what happens when kernel switches to standard allocator ? From what I know FreeBSD (and other BSDs?) has Universal Memory Allocator (UMA) that is used for everything.

comment 2mo ago · link · parent

I would prefer to have Delta Chat like app that uses email (SMTP/IMAP) as transport instead.

comment 4mo ago · link · parent

I wish these guys luck in finding their customer. Really. Because real solution to the problem would be to hire old-style developers to rewrite the whole slop from scratch without AI being involved. Fixing broken slop is Sisyphus's labor.

comment 5mo ago · link · parent

I would expect CDE (or NsCDE).

comment 5mo ago · link · parent

Cannot find what are the min HW requirements ? What min RAM/HDD/CPU to get simple X11 environment ? Will it run on 486DX2-66 ?

comment 5mo ago · link · parent

> Fastmail reads or analyzes users email to sell ads? Fastmail trains ai models on their user's email messages?

Even though they have not been caught, it does no mean they are not doing so. We live in the world of zero trust.

> Metadata is more valuable than message content for analysis. GPG solves that how?

In most cases yes, only From: and To: headers are exposed.

comment 5mo ago · link · parent

Delta Chat is an email client I use and advise to my correspondents, it does GPG stuff quite comfortably. Yet it still requires understanding of the process.

comment 5mo ago · link · parent

> The second is AI assistance: tools that summarize your inbox, surface action items, draft replies, and in some cases take actions on your behalf.

That is the most evil part. Finally we will have bots talking to bots, no human in the loop.

All email problems can be solved with GPG, but that ruins Fastmail and other email services business, as they won't be able to read and analyze their users' emails. No ads, no selling user profiles to ad companies, not even teaching AI on user data. This is the kind of future of email I would like to see. Sadly, noone uses GPG and it's quite hard to teach people to do it.

comment 7mo ago · link · parent

I think I know quite some things about OS internals, but not that much as a guy how writes device drivers daily. Would happily read such book to get in par with the author.

comment 7mo ago · link · parent

> This book has negative value. It is actively destructive to FreeBSD, even if in the short term it boosts the author's public profile.

I won't be that radical, the book still has value. There are many useful code samples with descriptions and explanations of concepts I did not know before. But to get to them one has to dig through a forrest of useless tokens. Someone has to pass it through an LLM and publish distilled edition. :-)

comment 7mo ago · link · parent

> This book is a dishonest AI scam.

Indeed! I read through a couple of paragraphs. Each begins with a bloated introduction where each sentence repeats same idea many times in different words. Lot's of bullets repeating same statement. That's exactly how LLM scam looks like. The whole book is full of water. It can be reduced in size by a factor of 5.

comment 7mo ago · link · parent

How about demo-design ? I mean good old PC demoscnece. Try to fit something feasible into 64K.

comment 7mo ago · link · parent

Do not pay for premium accounts, use their freemium service to death! Let them die hard!

comment 8mo ago · link · parent

Excuse me for being ignorant, is Seccomp what SELinux is based on ?

Also, what is well-known piece of software that uses Capsicum on FreeBSD ? Can someone name a few ?

comment 10mo ago · link · parent

When I was watching that Lunduke's video a couple of days ago initially I was thinking he's just making a joke of that Vendefoul Wolf distro on 200MB box. I recalled using FreeBSD as access server with lots of modems (PPP/SLIP), Apache, Samba and QuakeWorld server running on a box with just 32MB of RAM. That was also my daily working machine with XF86 and Enlightenment desktop manager, circa 2000. So, 200MB is a whole lot of memory!

comment 10mo ago · link · parent

That's interesting, thanks. I feel a need for simple multitasking/networking OS for synthesizable RV32I core (not RTOS like, but more like Unix or CP/M). Would be nice to try Plan9 on it once port is out.

comment 10mo ago · link · parent

I use one written in SpinalHDL. :-)

Next question is how much RAM it needs to boot and can it be used without rio ?

comment 10mo ago · link · parent

Is there Plan9 port for RISC-V (RV32I) ?
12345
15