Preferences

gibibit
Joined 174 karma
Solving problems and making awesome things

  1. What more do you want an OS to do? What do you expect Apple to add to MacOS? Just don't break stuff. Fix bugs. Once in a while some new kind of hardware or network protocol might need to be added. That's it.
  2. If done with Electron, that will be 100 MB.

    Or with Tauri, 5 MB. Which, amazingly, seems tiny.

  3. I am always curious how different C programs decide how to manage memory.

    In this case there are is a custom string library. Functions returned owned heap-allocated strings.

    However, I think there's a problem where static strings are used interchangably with heap-allocated strings, such as in the function `string class_simple_name(string full)` ( https://github.com/neocanable/garlic/blob/72357ddbcffdb75641... )

    Sometimes it returns a static string like `g_str_int` and sometimes a newly heap-allocated string, such as returned by `class_type_array_name(g_str_int, depth)`.

    Callers have no way to properly release the memory allocated by this function.

  4. Obviously they don't put the weight on the product main page, that is absolutely heavy.

    The Helinox Chair Zero is the standard by which all backpacking chairs are compared https://helinox.com/products/chair-zero - and it is 1 lb 1 oz.

    And then some people mod these chairs, like this similar one that was reduced to 13 oz. https://backpackinglight.com/forums/topic/chair-enlightening...

  5. True, "nm" initially seemed to be nautical miles, but then this square meters thing appeared. The point is that "m" should be meters, but "mi" would be a more customary abbreviation for miles in the U.S.
  6. "A single 1-kW jammer can take down GPS for a 300-nm radius.[...] A CRPA can shrink the effective radius of the 1-kW jammer to 3 nm. The jammer’s area of effectiveness is slashed from 280,000 m² to 28 m²."

    An example of the kind of unit confusion that could crash a Mars orbiter?

    I thought we were talking about nanometers and square meters here for a second. But this only makes sense if "m²" means square miles and "nm" means nautical miles. How about at least using "mi" for miles to reduce confusion?

  7. Very informative, thanks!
  8. Hilarious, 3000+ votes for a Stack Overflow question that's not a question. But it is an interesting article. Interesting enough that it gets to break all the rules, I guess?
  9. Is there any software that can provide verified, trusted archives of websites?

    For example, we can go to the Wayback Machine at archive.org to not only see what a website looked like in the past, but prove it to someone (because we implicitly trust The Internet Archive). But the Wayback Machine has deleted sites when a site later changes its robots.txt to exclude it, meaning that old site REALLY disappears from the web forever.

    The difficulty for a trusted archive solution is in proving that the archived pages weren't altered, and that the timestamp of the capture was not altered.

    It seems like blockchain would be a big help, and would prevent back-dating future snapshots, but there seem to be a lot of missing pieces still.

    Thoughts?

  10. I still can't believe how slow MS Word is to load a .docx document of about 150 pages of text, you can watch the page count in the status bar grow over a period of 10 seconds or more as it loads/paginates it.

    On the plus side, it's nostalgic and reminds me of the old MS Word 6 on Windows 95 (or Windows 3.1?) so that's nice.l

  11. I predict this won't be popular. E-ink is great for reading a book, especially on a portable battery-powered device, but on a large desk display connected to a general-purpose computer, it doesn't make sense at all.

    Slow and inconsistent refresh rate, limited lifetime cycles that you could wear it out in a year or 2 with frequent use.

  12. To me, spam is unsolicited email or phone calls. People or organizations contacting me when I haven't requested they do so.
  13. Interestingly the Macbook trackpad does not have physical buttons. It uses haptic feedback to simulate the feeling of a "click", but in reality there is no button which could be interrupted by dust.

    I did have a Macbook trackpad fail in a similar way, where the "button" seemed to intermittently fail to click. It turned out my battery was swelling (see /r/spicypillows) and this impacted the trackpad operation.

    On topic, I took the Macbook with swollen battery in to the Apple Store and they had to replace the entire keyboard+battery assembly as a unit because the battery was not replaceable.

  14. For reference, Rust provides a similar experience

        let names = ["Peter", "Julia", "Xi"];
        names
            .map(|name| format!("Hello, {name}"))
            .iter()
            .for_each(|greeting| println!("{greeting}! Enjoy your Rust"));
  15. Just wrong!!
  16. I am excited for any path that gets us toward a faster, leaner, cleaner web browser. It is insane that we have to dedicate multiple gigabytes of RAM, have CPUs 1000x faster than we had back with Netscape Navigator, and still the browser performs poorly, and constantly has security vulnerabilities.

    I hope Ladybird and Servo succeed. I tried Servo a couple of years ago and it was quite useless, unable to do anything, so I'll have to check back and see how it's doing sometime and see if it's improved.

    UPDATE: just tried the latest Servo build on macOS. About 100 MB download, not bad. Started fast. Kind of works. Fast but not very smooth, lots of repaint flashing etc. And text fields and text selection on the web page work poorly or not at all.

    I guess they're focusing on interesting internal stuff rather than the basics of loading a webpage and allow you to highlight text and copy it, or click in a text field and edit the text. I wonder whether it will graduate to a real browser sometime.

  17. Excel won't import ISO 8601 timestamps either, which is crazy these days where it's the universal standard, and there's no excuse to use anything else.

    You have to replace the "T" separator with a space and also any trailing "Z" UTC suffix (and I think any other timezone/offset as well?) for Excel to be able to parse as a time/date.

  18. After a little confusion I see this "Ractor" is the Ruby actors library https://ruby-doc.org/3.2.2/Ractor.html

    I was a little confused because when I think of Ractor, it's the Rust "Ractor" library https://github.com/slawlor/ractor which is an awesome library that brings Erlang/OTP gen_server actors to Rust and is very clean. Worth checking out BTW if you use Rust.

  19. Oh yeah, the forgotton IPv5!!
  20. It is a clever trick. Very useful in C also, maybe more than in C++.

    It can be overused, though.

    Kind of works like Rust declarative macros (`macro_rules!`) in that it is often used to repeat and expand something common across an axis of things that vary.

    It's funny that the simple name X Macros has stuck and is a de facto standard. E.g. https://en.wikipedia.org/wiki/X_macro suggests they date to the 1960s.

  21. I agree with the article. Maybe businesses are trying to protect themselves, but as a user, mandatory 2FA reduces the level of security I can achieve for myself.

    Because security is not just confidentiality, it's also availability: the "Security CIA Triad" is Confidentiality, Integrity, and Availability.

    If I can lose access (availability) to my online account by losing some physical item (e.g. lost cell phone), or if some third party can prevent me from accessing my 2FA (e.g. banned from my email provider by DMCA takedown request), then I have my availability, and hence overall security is at risk.

    Additionally, requiring a phone number for online services means that the confidentiality of my identity is reduced. It becomes impossible to be anonymous. For instance, you can't use Signal messenger without a phone number, so there's a chance your identity can be leaked.

  22. ARM Cortex-A is an application processor, not a microcontroller. With an MMU (can run a full OS like Linux) and without internal memory.

    Cortex-M is a microcontroller, without MMU (can't run Linux etc.), and typically has internal RAM and flash.

    Only the NXP i.MXRT1170 reaches 1 GHz CPU clock, and this is not multi-GHz as the prior comment declared.

  23. Will phones really be completely without wired ports? It's possible but unlikely any time soon. Wired ports are still important for development/debugging and crash recovery purposes, local data sync with a PC, as well as backup and restore.

    We'd probably need some kind of high speed short-range wireless connectivity that could replace a USB/lightning port for those purposes, but I think a wired connection will always have a place on phones in general.

  24. I've been using ripgrep for years now and I'm still blown away by its performance.

    In the blink of an eye to search a couple of gigabytes.

    I just checked and did a full search across 100 gigabytes of files in only 21 seconds.

    The software is fantastic, and moreover it goes to show what our modern hardware is capable of. In these days of unbelievable software waste and bloat, stuff like ripgrep, dua, and fd reminds me there is hope for a better world.

  25. I know it's probably an intentional exaggeration... but are there really any microcontrollers over 1 GHz core clock? Fast I know of is ST at around 600 MHz.
  26. I guess this is a matter of preference. I see when I click a link on stack.lol that the page header remains visible, but the rest of the page disappears (blanks to white) for a second before the next page appears.

    I prefer a seamless experience of seeing the next page immediately without a "white flash" first. For instance, if I am looking at a GitHub project page and I click the "Issues" button, in a fraction of a second the page changes to the Issues page without any intermediate disappearance or partial page load.

    In most cases, I find transition effects like fading, sliding, etc. to be an annoyance that adds unnecessary delay and visual distraction.

  27. Correct. HN thread https://www.hackerneue.com/item?id=43301369

    Not a vulnerability in the way that Tarlogic makes it sound. Disingenuous and misleading article for sure.

  28. Amazing, thanks! To anyone who hasn't tried it yet... Jiff is a fantastic time and date crate, I highly recommend you check it out, as a possible improvement over chrono and time.
  29. You're right that an application project (a `binary crate` in Rust parlance) for embedded firmware versus a PC application is very different. But library crates are often usable in both an embedded or system-level context or in a full-fledged desktop GUI application.

    Consider these common libraries you might use in either a `std` project (PC application, web microservice) or `no_std` project (embedded microcontroller firmware, bootloader, Linux kernel module, blockchain smart contract):

    - data encoding (https://crates.io/crates/base64 for instance),

    - hashing (SHA2 https://github.com/RustCrypto/hashes/tree/master/sha2),

    - data structures (https://github.com/Lokathor/tinyvec)

    - time/date manipulation (https://docs.rs/chrono/latest/chrono/)

  30. > For Compatibility with no_std tgts, e.g. embedded, Use the no_std feature.

    Note, this is not the recommended way to use Rust feature flags. They are additive and so the correct way to make a `no_std` compatible crate is to have a `std` feature flag that conditionally enables use of the `std` library.

    Referring to Effective Rust:

    > Note that there's a trap for the unwary here: don't have a no_std feature that disables functionality requiring std (or a no_alloc feature similarly). As explained in Item 26, features need to be additive, and there's no way to combine two users of the crate where one configures no_std and one doesn't—the former will trigger the removal of code that the latter relies on. - https://www.lurklurk.org/effective-rust/no-std.html

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal