shx's recent activity

  1. Comment on What features do you want to see in a userscript manager? in ~comp

    shx
    Link Parent
    Good to know! I'll probably just stick with wildcards, then, as it'll keep me from having to write more boilerplate.

    Good to know! I'll probably just stick with wildcards, then, as it'll keep me from having to write more boilerplate.

  2. Comment on What features do you want to see in a userscript manager? in ~comp

    shx
    Link Parent
    Good question! Unfortunately, it's not such an easy change. Firefox has this nonstandard (or at least it isn't implemented anywhere else) userscript API that webExtensions can use - By using it,...

    Good question! Unfortunately, it's not such an easy change. Firefox has this nonstandard (or at least it isn't implemented anywhere else) userscript API that webExtensions can use - By using it, I've managed to keep my code from actually touching pattern matching, creating <script> tags, or injecting anything. That has the benefit of keeping things small and simple, but it also means I can't mess around with the guts. That API only supports wildcards, so I'd have to fully abandon it and write my own injector if I wanted regex support.

  3. Comment on What features do you want to see in a userscript manager? in ~comp

    shx
    Link Parent
    Thank you! Bauke also seemed to like the idea of detecting script files, so it seems that's a common preference. I already have toggling each script implemented, as well - I think that's really...

    Thank you!

    Bauke also seemed to like the idea of detecting script files, so it seems that's a common preference. I already have toggling each script implemented, as well - I think that's really important, too. Thanks for your opinions regarding cloud sync and syntax highlighting!

    Regarding regex in URL matching - The way things are currently implemented, url matching works with wildcards, but not regex specifically - so, here are some valid identifiers for scripts:

    https://*.google.com/images/*
    <all_urls>

    However, adding actual regex support would require a lot of extra code, so I was hoping people wouldn't mind losing it. Is the wildcard support enough for your use cases? If not, could you give me an example of what kinds of domains you'd use a regex for?

    1 vote
  4. Comment on Do any of you use productivity software (kanbans, scrum, etc)? How do you stay productive and organized? in ~talk

    shx
    Link Parent
    Not OP, but I've been looking for something like TickTick for a long time - thanks for the reccomendation!

    Not OP, but I've been looking for something like TickTick for a long time - thanks for the reccomendation!

    4 votes
  5. Comment on What features do you want to see in a userscript manager? in ~comp

    shx
    Link Parent
    Oh, interesting - I don't think I want automatic updates enabled (I imagine that's a very easy vector for malware), but I think having a manual update option is smart. The .user.js feature is...

    Oh, interesting - I don't think I want automatic updates enabled (I imagine that's a very easy vector for malware), but I think having a manual update option is smart.

    The .user.js feature is handy, I'll definitely look into it.

    I'm using the Firefox UserScript API to handle most of the grunt work, and luckily that already supports wildcard URL matching. It's really reduced the amount of code I had to write, but it's also a bit limiting.

    Thanks so much for the thoughtful reply! I'll keep all of that in mind.

    5 votes
  6. Comment on What features do you want to see in a userscript manager? in ~comp

    shx
    Link Parent
    So far I'm only supporting modern Firefox - it has a userscript API that helps keep the project tiny. I'm not thrilled about that, because it doesn't even seem like chrome or opera are supporting...

    So far I'm only supporting modern Firefox - it has a userscript API that helps keep the project tiny. I'm not thrilled about that, because it doesn't even seem like chrome or opera are supporting that part of the webextensions API. I suppose one benefit of the small codebase is that porting it probably wouldn't take too long.

    I'm still mulling over how compatible my plugin will be with Greasemonkey et al - Obviously it would be nice to use the existing library of userscripts, but ensuring 100% compatibility would probably triple the project's size. I think I'll probably offer some middle ground - fragmentation is a pain.

    Thanks for sharing your thoughts, though! Those are both important issues I hadn't considered much. I doubt the overlap between people who use chrome and people who want to read browser extension source code is pretty small, so I might want to lean in to the niche privacy aware/FOSS browser community here.

    5 votes
  7. What features do you want to see in a userscript manager?

    I'm currently developing a minimal userscript manager who's main goal is to be fully auditable by any user in only ten minutes or so - my prototype uses less than 300 lines of javascript, and I'm...

    I'm currently developing a minimal userscript manager who's main goal is to be fully auditable by any user in only ten minutes or so - my prototype uses less than 300 lines of javascript, and I'm trying to keep it that way.

    To get the codebase this small, however, I have to be very picky with what features I implement - most notably, the code editor has to be very barebones. Are there any features that I'd be shooting myself in the foot by not including?

    For example:

    • syntax highlighting
    • cloud sync
    • regex url matching
    • fullscreen editor (currently, it's just a browser popup - the intention is that you write code elsewhere and paste it in)

    Any feedback is greatly appreciated!

    7 votes
  8. Comment on Eleven days in ~talk

    shx
    Link Parent
    Ooh, what keyboard?

    Ooh, what keyboard?

    3 votes
  9. Comment on Librem 5 mass production phone has begun shipping in ~tech

    shx
    Link
    I'm excited to see how far they've come with the speed of this device. I saw some previews earlier showing it running Firefox, and I'll admit my optimism was.. well, diminished, when they showed...

    I'm excited to see how far they've come with the speed of this device. I saw some previews earlier showing it running Firefox, and I'll admit my optimism was.. well, diminished, when they showed how laggy the scrolling was. It also seems that way for system elements too, which I had hoped would be more responsive.

    I still love the idea, and I'm a big supporter of the aims of the project. But I hope they have something in the works to fix those problems so that this has a chance to take off.

    4 votes
  10. Comment on Positive Youtube channels? in ~hobbies

    shx
    Link
    Sebastian Lague makes fantastic content about programming (more aimed at programmers than beginners) - it's full of really interesting ideas (lots of work with GPU shaders), beautiful simulations,...

    Sebastian Lague makes fantastic content about programming (more aimed at programmers than beginners) - it's full of really interesting ideas (lots of work with GPU shaders), beautiful simulations, and a very cute kitty cat.

    I also really enjoy Daily Dose of Internet - it's just a compilation of cute videos and uplifting stuff. It sounds a little trite from that explanation, but the person who curates the channel seems wonderful and has stated that his goal is to make the internet a happier place. It's always pretty relaxing, even if it's not educational.

    4 votes
  11. Comment on Programming Languages that are Both Interpretable and Compilable? in ~comp

    shx
    Link Parent
    Very cool! That's something I definitely hadn't heard about.

    Very cool! That's something I definitely hadn't heard about.

  12. Comment on Programming Languages that are Both Interpretable and Compilable? in ~comp

    shx
    Link Parent
    I was referring to a unix shell - A habit of mine is to open an editor and terminal side by side, and write shell script in the editor while testing and prototyping each command in the adjacent...

    I was referring to a unix shell - A habit of mine is to open an editor and terminal side by side, and write shell script in the editor while testing and prototyping each command in the adjacent terminal.

    But haha, I totally agree. Writing programs in interpreters, like python, or even the browser js console, is a nightmare.

    1 vote
  13. Comment on Programming Languages that are Both Interpretable and Compilable? in ~comp

    shx
    Link Parent
    Ah, I think the mistake is in my original post, rather than my understanding. Whoops - I guess I phrased things a little too fast and loose in my excitement. The reason I mentioned feasibility is...

    Ah, I think the mistake is in my original post, rather than my understanding. Whoops - I guess I phrased things a little too fast and loose in my excitement. The reason I mentioned feasibility is that I had a hunch this sort of project would be impractical to develop, due to what you mentioned - two massive codebases trying to adhere to a singular evolving standard! Haha, open source has enough problems as it is, even without a project that.. Demanding?

    Thanks for the link and the reply! I'll definitely check that out. (And I'll add a disclaimer to my original post tor reflect what I mentioned)

    2 votes
  14. Comment on Programming Languages that are Both Interpretable and Compilable? in ~comp

    shx
    Link Parent
    I appreciate all the detail you put in there - thanks so much! I'll revise my post though, as I'm not personally planning to create any languages. I have enough half baked projects to work through...

    I appreciate all the detail you put in there - thanks so much! I'll revise my post though, as I'm not personally planning to create any languages. I have enough half baked projects to work through as it is, haha.

    When you refer about many languages being compiled then interpreted - are you referring to something like the jvm/bytecode? If not, I'm not familiar with what you're describing!

    Once again, thanks a ton.

    3 votes
  15. Comment on Programming Languages that are Both Interpretable and Compilable? in ~comp

    shx
    Link Parent
    Ooh, good point! I'm a mathematician at heart, so FP has always been alluring. I looked into fasl some more - seems that some implementations do indeed run it on bare metal, which is much better...

    Ooh, good point! I'm a mathematician at heart, so FP has always been alluring. I looked into fasl some more - seems that some implementations do indeed run it on bare metal, which is much better than the bytecode I was expecting.

    And thank you for the book suggestion - I suppose my question was misleading, because I don't intend to actually make this language, I was just wondering what the state of the art was (if any). Nonetheless, I've been learning more about formal grammars in my free time, and that looks like a lovely read.

    3 votes
  16. Comment on Programming Languages that are Both Interpretable and Compilable? in ~comp

    shx
    Link Parent
    Huh! I didn't know that. Swift is interesting, but I haven't given it much attention in the past. Thank you for sharing :)

    Huh! I didn't know that. Swift is interesting, but I haven't given it much attention in the past. Thank you for sharing :)

    2 votes
  17. Programming Languages that are Both Interpretable and Compilable?

    I've been thinking about the feasibility of defining a language spec that can both be compiled and interpreted lately. I first thought about it while writing code in crystal, which, for the...

    I've been thinking about the feasibility of defining a language spec that can both be compiled and interpreted lately. I first thought about it while writing code in crystal, which, for the unfamiliar, is a compiled language based heavily off the syntax of an interpreted language (ruby).

    Here are a couple reasons I find the idea interesting:

    • It effectively neuters the interpreted/compiled language debates. Why just choose one, when both have such big upsides?
    • You could develop a program in the interpreter with the same playfulness as you get in a shell, and then compile it into a speedy 'lil thing!
    • It would be wonderful for metaprogramming! From my experience, languages usually define a little janked together syntax for compile-time execution. If the language had an interpreter for itself within the compiler, you could metaprogram and program in the exact same language.

    I'm curious if any languages like this exist, or if you can think of more benefits.

    Edit:
    I just want to mention that my reference to 'feasibility' earlier is not born of disbelief - you can write a compiler or interpreter for any (to the best of my knowledge!) well defined formal grammar with enough effort. I suppose I left that word there to account for the fact that I might have unknown unknowns here.

    14 votes
  18. Comment on Dos and don'ts in open source in ~comp

    shx
    Link
    I agree with a lot of what this article says. From personal experience, I find the biggest concern I have when contributing to a project is knowing that, often, people will be dismissive and rude....

    I agree with a lot of what this article says. From personal experience, I find the biggest concern I have when contributing to a project is knowing that, often, people will be dismissive and rude. I'm still rather fresh in the OSS scene, and it's been hard to get over that. I've wasted so much time writing and rewriting, hoping that a person I respect won't decide to eviscerate a comment I made.

    What I like about Tildes is that it is polite by default. I don't have to establish myself or read over my words a dozen times to ensure people will offer me basic respect.

    9 votes
  19. Comment on Call for volunteers: Techies against COVID-19 in ~comp

    shx
    Link
    I'm decent with full-stack webdev, and could be willing to help out. If you identify a need where those skills would be helpful, feel free to let me know.

    I'm decent with full-stack webdev, and could be willing to help out. If you identify a need where those skills would be helpful, feel free to let me know.

    2 votes
  20. Comment on What's something you have always wanted to know about being LGBT (but were maybe afraid to ask)? in ~talk

    shx
    Link Parent
    Mhm, I reckon I agree with all of that. Anyhow, I'm glad you were able to garner a little insight from my reply!

    Mhm, I reckon I agree with all of that. Anyhow, I'm glad you were able to garner a little insight from my reply!

    3 votes