linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New syscall: leftpad()
@ 2016-03-31 22:33 Richard Weinberger
  2016-03-31 22:33 ` [PATCH] Implement leftpad syscall Richard Weinberger
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Richard Weinberger @ 2016-03-31 22:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-api

Recent happenings in the node.js community showed how fragile software is when
it comes to dependencies of fundamental algorithms like leftpad[1].
A node.js package which provided ledpad vanished and broke a lot of software.
This raised our attention and we came to the conclusion that it is the kernel's
job to provide such functionality such that node.js based applications can in future
rely in Linux's "don't break userspace" rule.
We hope that glibc and Andoid's bionic will soon offer wrapper functions for this
new leftpad system call.
We put leftpad into the kernel not only because of Linux's stable ABI,
also for performance reasons.
As everyone knows, within the kernel everything is faster and better.
Leftpad has millions of users, so it has to be as fast as possible.
This new system call will also help making services like left-pad.io[2]
faster and more reliable. If the leftpad() system call gets adopted by a wider user base
it might also make sense to add a generic npm() system call which acts like ioctl()
where kernel modules can register new functions that are often used by node.js.
Such functions might be, is_array(), is_int(), etc.

Enjoy,
//richard

[1] http://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
[2] http://left-pad.io/

[PATCH] Implement leftpad syscall
[PATCH] leftpad.2: Document new syscall

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-04-09 14:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-31 22:33 New syscall: leftpad() Richard Weinberger
2016-03-31 22:33 ` [PATCH] Implement leftpad syscall Richard Weinberger
2016-03-31 22:46   ` Michael Kerrisk (man-pages)
2016-03-31 23:09   ` Greg KH
2016-04-01  1:33   ` Frederic Weisbecker
2016-04-01  3:22   ` kbuild test robot
2016-04-01  6:56   ` Richard Cochran
2016-04-01  7:14   ` Scotty Bauer
2016-03-31 22:33 ` [PATCH] leftpad.2: Document new syscall Richard Weinberger
2016-04-08 18:10   ` Heinrich Schuchardt
2016-04-09 14:12     ` Richard Weinberger
2016-03-31 23:36 ` New syscall: leftpad() Randy Dunlap
2016-04-01  8:06   ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).