4 ms·
There is a huge amount of C code in Emacs that already isn't using the standard C library. As an example, the other day I noticed that Emacs has its own hand ro
by eklitzke 9y ago
There is a huge amount of C code in Emacs that already isn't using the standard C library. As an example, the other day I noticed that Emacs has its own hand rolled implementation of mkstemp(). Unsurprisingly, the Emacs version uses a less secure implementation, so the custom implementation is of no value.
A lot of people have already written about the difficulty of getting changes to fix things like this (or eliminate dead code, etc.) landed in upstream GNU Emacs. Rewriting parts of Emacs in Rust is an interesting idea, and I applaud it as a fun project. But for people who are interested in making more incremental improvements to Emacs, there's a lot of work to be done in the existing C code base to make it smaller and more secure.
- mixedCase 9y agoI don't see how it is any more incremental than what Remacs is trying to do. They're doing a parasitic rewrite of GNU Emacs, it's not a from-scratch implementation.
- deleted 9y ago[deleted]
- Leilani99 9y ago@Loise, you make $27h...good for you! I make up to $85h working from home. My story is that I quit working at shoprite to work online and with a little effort I easily bring in around $45h to $85h…heres a good example of what i'm doing, ----------------->>http://www.joinmate2.com http://www.joinmate2.com
- Madeline44 9y agoEarning money online was never been easy as it has become for me now. I freelance over the internet and earn about 75 bucks an hour. Get more time with your family by doing jobs that only require for you to have a computer and an internet access and you can have that at your home. A little effort and handsome earning dream is just a click away………. http://usawork.cn.to http://usawork.cn.to
- Evelyn533 9y ago$85 an hour! Seriously I don't know why more people haven't tried this, I work two shifts, 2 hours in the day and 2 in the evening…And whats awesome is Im working from home so I get more time with my kids. Heres where I went, ====http://ow.ly/P0wk30aVXfN http://ow.ly/P0wk30aVXfN
- hyperpape 9y agoIf it's hard to upstream code in emacs, doesn't that improve the case for a rewrite/fork?
- swhipple 9y agoThe mkstemp you are seeing is probably the one from gnulib. A lot of GNU software uses their own versions if they detect the platform one is broken; it may be incorrectly replacing it in this case. https://www.gnu.org/software/gnulib/manual/html_node/mkstemp.html https://www.gnu.org/software/gnulib/manual/html_node/mkstemp... https://github.com/emacs-mirror/emacs/blob/65eee8392ff95f58f7b0bd036e1fe065523658c6/lib/stdlib.in.h#L386-L415 https://github.com/emacs-mirror/emacs/blob/65eee8392ff95f58f...
- ajross 9y agoTo be fair: emacs was written in an era where the idea of a "standard" C library was kind of a joke. Those functions provide "no value" today on systems that have been POSIX-valid for decades. They certainly did in the mid-80's when Unix portability was the biggest hassle of the day. That said, though: wouldn't that argue for things like "remove custom mkstemp" and not "rewrite it all in rust?"