Hacker Newsnew | past | comments | ask | show | jobs | submit | M95D's commentslogin

[Removed bad comment. Sorry.]

Wow entitled gatekeeping much?

What if parent already knows the answers to that and the question they really want to ask is … wait for it… the one they actually asked?

If you want to ask a different question go right ahead but cutting off others like this is plain rude.


I... fail to see the point of running just one process.

If it's just a PoC, then:

1) I remember seeing a linux firewall/gateway set up to run with just the kernel, without any userspace at all. Completely unhackable.

2) To print some text or run a simple program, I belive DOS without a memory manager would be even faster.

3) It takes 1s to boot linux, but an ordinary PC takes 10s to get to that linux. Even U-boot on ARM takes some seconds to load a kernel.

BTW, if anyone knows any current platform that can XiP a linux kernel, please share.


> I remember seeing a linux firewall/gateway set up to run with just the kernel, without any userspace at all. Completely unhackable.

Do you remember any details that would let me search for it? Because that does sound cool, and even maybe useful; the thought has certainly crossed my mind that a router or VPN box doesn't really get a lot of use out of userspace... Although maybe it's worth keeping for control/configuration/debugging.

> To print some text or run a simple program, I belive DOS without a memory manager would be even faster.

Or just make your code boot directly. It's not hard to make a .efi, or use https://github.com/jart/cosmopolitan to make a binary that runs in many places including bare metal.


IIRC, it ran a script as init process that set up the network cards, set up iptables, etc. and then just exited. Kernel would panic (the "init was killed" panic), but the network would still be functional. Automatic reboot on panic was disabled.

To reconfigure, the admin would simply reset it and start the system with "init=/something/else" as kernel parameter that booted to a normal userspace.


Oh, clever; I didn't know you could make Linux panic but keep running.

> control/configuration/debugging

This is one of several major arguments made against unikernels in that famous Triton rant from a decade ago:

https://tritondatacenter.com/blog/unikernels-are-unfit-for-p...

Basically, even if your application _can_ run as the kernel, and it's desirable for it to run with kernel-level permissions, do you really want production to be a world without strace and iotop and the like?


That's a halted firewall setup. Normally as part of shutdown you would tear down networking in SysVinit or systemd but you don't actually have to do that. When shutting down you can choose whether to power off or just to halt. It's basically like the old Windows "It is now safe to power off your PC".

Wouldn't this be useful for embedded types of applications where you have a very specific task you want to do and you want to do it now.... like that firewall example?

Yeah, but there's a problem.

Do do something actually useful, the program would have to access some data: network, disk, some sensors, etc. Network alone means scanning PCIe for the network card and configuring it, disk access needs controller also on PCIe, then scanning the ports for the drive, reading partition table, mounting the partition, etc.

All that takes a lot more than 1s. The speedup might not even be significant compared to a kernel optimized for that system (all modules built-in, nothing redundant), but full-featured, plus busybox or sysvinit alone.


Embedded devices or other SoC situations, certain limited scope situations where docker is undesirable/unnecessary, etc.

> I... fail to see the point of running just one process.

It makes sense if you got some legacy piece of hardware that has extremely limited resources, both in terms of RAM and storage. Write your code in Go and you don't even need libc any more.


At that point, it would seem that an RTOS would be even more efficient - and if multithreading is not necessary, then just run it on bare metal.

BTW, if anyone is interested, there's a TLS patch for Nokia S60v3 and UIQ based on mbedtls. Makes mail work again.

https://github.com/JigokuMaster/Symbian-TLS-Patch


No RomPatcher+ and InstallServer patch?

I'm not the person that you replied to, but I have. I bought a FP3 and it's waiting in my drawer until the last 2G network goes down. I'm using my N86 until then.

I want/need a phone that I can answer with one hand without looking at the screen and can record phone calls automatically so don't have to search for pen and paper all the time. No current phone is capable of these two things.


Basically any Android phone where you can gain root access is capable, you can set up automatic recording of every call and set answering call with a button (like Volume Up).

> answering call with a button (like Volume Up)

Are you sure? I didn't find that option on FP3.


Don't know about FP3 specifically, but on some phones it's built-in in accessibility settings (all Samsung phones for example). For other phones you can try an app such as Button Mapper and assign "accept call" to a button.

N95 was considered a smartphone at the time.

I still have a MB with just a USB 1.1 controller. I would hate it if the USB stopped working after this fix. I think a config option for the delay would be best.

Could you fix some bugs? Please?

Why? The moment you touch the code you become responsible for it. Can't count how many times I fixed something on a goodwill and then became responsible for it.

The testers have the latest build, and have not reported any bugs. I don't even know if the project I am working on is even going to be funded after a few more months. I am just in this sort of limbo that really sucks.

I would try to learn some new tech. Definitely not something you can do in a vacuum with no goal for months in a corporate setting, but e.g. learning more about a programming language you already use, or some libraries, some tooling, you can easily spend a few weeks.

After that, yes it'd make sense to find something else.


1: If you want to protect user's privacy, you collect no personal information, so GDPR doesn't apply.

2: You do that.

3: Since your platform collects no private information, they get nothing from you. If they collect private information on their own, it's their job to comply with GDPR.

What you should do in case (3) is ask the user for permission to allow the 3rd party access to private data on their device. It's their choice (not yours) to allow it or not.


> The EU Parliament cannot pass, change or repeal laws.

I suggest you verify that.


It's a constitutional fact. The most they can do is propose amendments to laws proposed by the Commission, but the Commission drives the whole process and isn't required to accept them (worst case, they just cancel the law and then try again later).

There is literally nobody you can vote for to if you want to repeal the DMA.


I had the impression they can amend and repeal them. I was wrong.

No worries. It's called a Parliament despite not being one by the definition of the word, specifically to create this confusion.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: