Hacker News new | past | comments | ask | show | jobs | submit | ezequiel-garzon's comments login

In the case of termux, by far my favorite app, I have more than 2GB of locally installed packages. How would that work with a browser?


OP talks about apps in general, of course there will always be anecdotic cases like this one (see also https://xkcd.com/1172/).


It does if single or double quotes are used, right? Which would be necessary (or preferred to multiple backslashes) quite often.


No, the quotes are not seen by the program. The program receives a list of strings, it does not get the information about whether and how those strings were originally quoted in the shell. Programs can also be directly called with lists of strings as in execve, so often it does not even make sense to ask if the arguments were quoted or not.

Quotes live on a different level of abstraction.


> No, the quotes are not seen by the program. The program receives a list of strings, it does not get the information about whether and how those strings were originally quoted in the shell.

With quotes the program will receive a single argument -n␣o␣p␣e instead of multiple ones -n, o, p, e. At least it works on the machine here:

    ]$ echo "-n o p e"
    -n o p e
    
    ]$ /bin/echo "-n o p e"
    -n o p e


Yes, I think there was some misremembering here. The nontrivial thing is to print out -n itself with echo. For example, echo doesn't treat "--" specially, so "echo -- -n" prints "-- -n".


Note that this is true for POSIX sytems but not e.g. for Windows. There the program receives the command-line as-is and is responsible for parsing it into an array. There are two different standard functions to do this parsing for you (with slightly different quoting behavior) but you could also create your own that requires options to not be quoted.


Where 500 years ago?


Europe, a lot of cities went though a few large fires and then went "facepalm oh!!! maybe we should try stone!"


Indeed, CSS is so massive it has long been a collection of standards. Good luck implementing all that.


the author describes how their render-once approach lets them implement CSS in a simpler way since they don't need to retain information for arbitrary dynamic changes in the stylesheets and content

they also probably don't implement most of CSS


I guess this implies that rescaling the window, or rotating your phone, will not update the view. Then you'd have to reload the page. That trade-off seems okay to me.


I believe Netscape worked like this back in the day. (ETA: as in, resizing the window would reload the page.)


Resizing would just reflow (ie re-render it) the page, not reload it.


Constrained features can work great in certain niches, imagine using this in a kiosk (where resizing isn't possible).


Yeah, the layout would still resize but it could be non-ideal in some cases as it would be based on media queries for another width.

For the rotation I could process a second layout on the background and switch to it instantly if rotated. Similarly hover effects will be limited. Things affecting visibility of the blocks/layers should work (for menus), small adjustments of layouted text too, but anything that is more complicated won't be. It currently uses a hardcoded hover effect for links.


This is a timely coincidence for me. I started using yesterday Shortcat [1] for the Mac, and I'm very pleased. It gives you access to pretty much everything with the keyboard, not just the browser. To be fair, Nyxt provides other features such as scripting.

[1] https://shortcat.app/


I really wish it was open-source. I loved the concept and the app worked in most applications (though not the best with Slack). But I have reservations when it comes to granting full screen access to an app made by some unknown developer.


I feel the same, so I simply block its network access (via LuLu), and it works just fine that way. I wish it was open source so I could hack on it and so development could continue - it's a really cool idea and works pretty well.


This looks amazing, congratulations! I can see that it seems to run offline (curl says "# requires networking"), but if I launch it on airplane mode on an iPhone it halts. Is this the expected behavior? Also, is it possible to install packages? These two things could address some of the shortcomings of iSH. Thanks!!


The disk blocks are streamed on demand, so a connection is required.

The virtual disk is quite large (1.5GB) which is necessary to run a full distro but makes pre-downloading for offline mode not possible.

It _could_ work if you let your workload run once and then disconnect, but there is no guarantee.

Installing packages is supported both in the Debian terminal and Alpine desktop.


It is certainly possible to download and store 1.5 GB in browsers these days.


Could you elaborate? I always found the "grading on a curve" a distinctly American approach that leads to grade inflation and an overall lower academic level. Now, granted, the US provides very unique opportunities for students that want to go above and beyond, but that's another story.


At least a full fourth of the ASCII code points, 0x00-0x1F, are not printable. A bit more, as we should add del (0x7F) and, according to some though more controversially, space (0x20).


the full forth may not be "printable if you define printable as using toner and ignoring positioning". But they aren't escape codes.


Just in case, from the command line I recommend uni: https://github.com/arp242/uni


I feel the dates of publication and last update should be readily available, that is in the content and at the beginning. Of course this goes against minimalism, and plenty of maximalist websites omit this information as well.


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

Search: