Better HN
topnewbestaskshowjobs
Log inSign up

nmz

679 karma · joined Mar 3, 2019 (7y ago) · 680 submissions

Submissions

comment 1y ago · link · parent

He has to do it, he's already a felon, jail time probably awaits him if a dem is elected.

comment 1y ago · link · parent

Yeah, like he stated that he wasn't going to do anything that was in project 2025. So that was a lie.

comment 1y ago · link · parent

If the focus is on text, then the best example is probably the sqlite amalgation file which is a 9mb C file.

comment 1y ago · link · parent

As intended.

https://gizmodo.com/larry-ellisons-oracle-started-as-a-cia-p...

comment 1y ago · link · parent

What are they going to do? ban you? if so they're doing you a favor.

comment 1y ago · link · parent

Well that's the problem, it isn't, its a pseudo csv. A simple csv can be done with {awk -F ,} you only have a certain amount of fields separated by ",". field N is ".+". This means you don't need a parser, but it also means the format is variable depending on the headers. but you also can create a simple BRE regex, thus having pretty good performance.

comment 1y ago · link · parent

well, yeah, that's what a csv is but the format is not regular.

comment 1y ago · link · parent

Quite frankly I'd love a programmers dictionary over terms, I recently called a file with a csv like format a db because, well, its not a csv and I don't know what else to call it.

comment 1y ago · link · parent

Have you tried plan9's rc? easy to memorize syntax thing. It's still easy to make mistakes though and nobody uses it.

comment 1y ago · link · parent

POSIX sh doesn't even have arrays. I remember having to use awk for that functionality.

comment 1y ago · link · parent

Bit of hyperbole considering opentombs Tomb Raider can run on the GBA.

https://opentomb.github.io/

https://www.youtube.com/watch?v=_GVSLcqGP7g

comment 1y ago · link · parent

A blog is personal a wiki is not.

comment 1y ago · link · parent

Of course, it doesn't have millions of dollars thrown at it.

comment 1y ago · link · parent

Mind you its a bit unfair to compare nodejs with lua, a better example is luajit.

comment 1y ago · link · parent

It's _ENV by default, it just defaults to _G.

comment 1y ago · link · parent

Associative arrays are also "nicer" with 1 based indexing

  t={}
  t[#t+1] --> t[1] DONE!
  t[#t==0 and 0 or #t+1]
Now, in order to fix this (or achieve the same behavior as #t+1), the length operator must return -1, which would be ridiculous. its empty, and we have a perfect representation of emptiness in math "0".

This is also true in awk as well, nobody ever whines about awk "arrays" being 0

comment 1y ago · link · parent

in this case its more like rebol and factor had a baby. both of which are evolutions of tcl and forth I guess.

comment 1y ago · link · parent

lua tables are dynamic and they call that tables

comment 1y ago · link · parent

Not a bad idea, light enough to implement a telegram bot everyone can use or email or maybe a bitlbee plugin so you can have a twtxt channel.

But, what is it? can you PM someone? participate in a conversation? or is it just that, a microblog? Usability wise what will you do? keep a client running that always checks if new blogs have happened over, how many followers? I'm currently following 500 people, that's 500 connections if this takes off.

It would be nice if an rss client supported it, until then ehh

comment 1y ago · link · parent

Honestly the first thing I do is get busybox, busybox's behavior is at least somewhat predictable.

comment 2y ago · link · parent

Your claim is not false, but not universally true either, the counter is alex jones, the flat earth movement, religion as well, you can spend nearly an infinity believing in lies. The human brain is quite malleable to lies.

comment 2y ago · link · parent

If all you believe are lies, what's the difference?

comment 2y ago · link · parent

Does static compilation use the entire library instead of just the parts that are used? If I'm just using a single function from this library, why include everything?

comment 2y ago · link · parent

Poettering does work for microsoft.

comment 2y ago · link · parent

Reminder to look at the twitter user "shithnsays"

comment 2y ago · link · parent

Labeling, fstab is supposed to be a .tsv, what happens if I mistype something? where's the safety? Does this need to be a DSL?

comment 2y ago · link · parent

> Linux’s io_uring is a relatively recent addition that improves asynchronous I/O, but it has been a significant source of security vulnerabilities and is not in widespread use.

Funny, opening the manpage of aio on freebsd you get this on the second paragraph

> Asynchronous I/O operations on some file descriptor types may block an > AIO daemon indefinitely resulting in process and/or system hangs. > Operations on these file descriptor types are considered “unsafe” and > disabled by default. They can be enabled by setting the > vfs.aio.enable_unsafe sysctl node to a non-zero value.

So nothing is safe.

comment 2y ago · link · parent

Saving disk space and synchronization is only important for network transmission. At the local level, you will need to convert to something where you can get/know positioning, utf8 does not allow for this given its variability, this means a lot of operations are more expensive and you will have to convert to utf16 anyway.

comment 2y ago · link · parent

Really strange that argv[0] has a basically unlimited character size while #! has a hardcodede 256 byte limit.

comment 2y ago · link · parent

Given that sh can print everything as it runs, it would be nice to know what is it that takes so long, instead of doing a full rewrite.

I remember once replacing a filter written in pure bash by an awk one, the slowdown was around 2 minutes v awk which was a second.

1
567
23