Preferences

ammar2
Joined 207 karma
https://github.com/ammaraskar

  1. > Microsoft would fork it within hours

    I haven't trudged through Chromium's commit statistics but has Microsoft been upstreaming many contributions? I'm skeptical that they are ready to take on the full brunt of Chromium maintenance on a whim, it would take a decent while to build up the teams and expertise for it.

  2. Glad this feature is built into most modern operating systems these days.

    For MacOS (Sequoia+) you can just forget the network and reconnect to get a new MAC address [1].

    Android's documentation for if it decides to generate a new address per connection is a little vague [2], but I'm guessing forgetting and reconnecting works as well, you may also need to flip the "Wi-Fi non-persistent MAC randomization" bit in developer settings.

    On Windows, flipping the "Random hardware address" switch seems to cause it to generate a new seed/address for me.

    [1] https://support.apple.com/en-euro/102509

    [2] https://source.android.com/docs/core/connect/wifi-mac-random...

  3. > it includes instructions for stack manipulation, binary operations

    Your example contains some integer arithmetic, I'm curious if you've implemented any other Python data types like floats/strings/tuples yet. If you have, how does your ISA handle binary operations for two different types like `1 + 1.0`, is there some sort of dispatch table based on the types on the stack?

  4. Aah, neat! Yeah, piggy-backing off pypy's work here would probably make the most sense.

    It'll also be interesting to see how OP deals with things like dictionaries and lists.

  5. > I'd prefer to move forward based on clear use cases

    Taking the concrete example of the `struct` module as a use-case, I'm curious if you have a plan for it and similar modules. The tricky part of course is that it is implemented in C.

    Would you have to rewrite those stdlib modules in pure python?

  6. What you're proposing is reminiscent of Keybase's account verification system. You make a post or equivalent on each platform with cryptographic proof that it's you. (e.g here's mine for GitHub https://gist.github.com/ammaraskar/0f2714c46f796734efff7b2dd...).
  7. Oh whoops, that's right. I totally missed that.
  8. Edit: Analyzed the wrong thing earlier.

    This depends on the Python version, but if it has the specializing interpreter changes, the `COMPARE_OP` comparing the integers there is probably hitting a specialized `_COMPARE_OP_INT` [1].

    This specialization has a ternary that does `res = (sign_ish & oparg) ? PyStackRef_True : PyStackRef_False;`. This might be the branch that ends up getting predicted correctly?

    Older versions of Python go through a bunch of dynamic dispatch first and then end up with a similar sort of int comparison in `long_richcompare`. [2]

    [1] https://github.com/python/cpython/blob/561965fa5c8314dee5b86...

    [2] https://github.com/python/cpython/blob/561965fa5c8314dee5b86...

  9. That would be awesome! My airport is KPDK (sadly it doesn't have a good liveatc stream for its ATIS frequency).

    I did collect a bunch of ATIS recordings and hand-transcribed ground-truth data for it a while ago. I can put it up if that might be handy for y'all.

  10. Any plans on open-sourcing your ATC speech models? I've long wanted a system to take ATIS broadcasts and do a transcription to get sort of an advisory D-ATIS since that system is only available at big commercial airports. (And apparently according to my very busy local tower, nearly impossible to get FAA to give to you).

    Existing models I've tried just do a really terrible job at it.

  11. I was actually a little surprised to see that in there, I wouldn't really consider those features to be "memory safety" as I traditionally see it over Java.

    They don't really lead to exploitable conditions, except maybe DoS if you have poor error handling and your application dies with null pointer exceptions.

  12. He does open with:

    > I was hopeful, and I've tried to just see if this long thread results in anything constructive, but this seems to be going backwards (or at least not forwards).

    So probably just hoping some people on either side of the issue would see the light. But he also probably shouldn't have chimed in earlier then.

  13. The VOR Minimum Operation Network[1] in the US is basically supposed to be that. They're decommissioning a lot of the VORs but at least guaranteeing that you'll be 100NM away from a working VOR and an airport with an approach that can be accomplished with VORs for the initial fixes.

    Still definitely feels like putting a lot of reliance on GPS but at least there's a backup for the worst case.

    [1] https://www.faa.gov/about/office_org/headquarters_offices/at...

  14. Yeah I'm surprised by that as well. As far as I remember, Rosie started out in 2010 and people were using in 2012. Maybe the clustering/splitting didn't support this use-case or it wasn't well-known enough?
  15. A little non-portable but there is an xterm escape sequence[1] that gets the user's background color: \e]11;?\a

    You might also be able to use the reverse-video[2] escape sequence to get something that works depending on the user's color scheme.

    [1] https://stackoverflow.com/a/7767891

    [2] https://en.wikipedia.org/wiki/Reverse_video

  16. Saying they hide it might be a bit of a stretch, that URL just 302's to the comment link with the title-in-url as usual. I guess you're referring to being able to right-click and copy the url directly?
  17. This isn't a technical limitation though, the European standard for airplanes newer than 2021 is in fact 25 hours [1].

    [1] https://mentourpilot.com/who-doesnt-want-25-hour-cockpit-voi...

  18. > Even if I could figure out how to get a PCB made from a KiCAD file I wouldn't be able to do the surface-mount soldering without botching everything.

    For what it's worth, some places like JLCPCB can source and solder SMT components to your designed boards as long as you pick from their available parts library.

  19. > Developing for iOS devices is $99 a year (plus store commission) for literally anyone.

    Don't forget having to buy a MacOS device in this equation.

  20. Can you give an example of such a tool that analyzes/refactors just the text output of gofmt?

    It seems like that approach that would be fraught with errors considering how lenient gofmt can be at times but maybe it would be okay for simple stuff. e.g all of these ways of invoking methods:

       fmt.
               Println("Hello ",
                       "World",
               )
    
      fmt.Println("Hello ",
              "World")
    
      fmt.Println("Hello ", "World")
  21. Looks like a one-wire protocol talking to a DS2501 chip

    https://hclxing.wordpress.com/2014/02/09/hacking-a-dell-powe...

  22. Oh huh maybe I've been running mine in the throttled mode unknowingly, thanks for the pointer.

    Edit:

    I ran the `cpufreq-info` command in your write-up and it gave me the correct:

    > hardware limits: 800 MHz - 3.00 GHz

    Maybe it's because the usb-c to barrel jack cable I picked up was marketed for dell laptops?

  23. You don't need to buy the OEM power adapter for $46.99

    The great thing about these Optiplexes is that they use a standard 20v 4.5x3mm DC jack for power. I run mine off a UPS with a usb-c to barrel jack cable.

  24. There actually isn't that much work to adding basic support for a new platform target for Rust. You're moreso banking on LLVM's ability to target it, which, given clang gives you that C compiler maturity you're after.
  25. With gboard on Android, if you highlight a word and tap shift, it will go from lowercase to Capitalized to SHOUTING case.
  26. Another quick question for you, what are you using to make those hand-drawn looking diagrams? They look amazing.
  27. Yeah those first two are AAA publishers rather than games.

    Genshin impact though is definitely in the AAA category, it pulls in billions and had an initial budget (they put out constant updates) of $100M

  28. > I find this an odd statement because from my perspective there aren't any AAA titles written in Unity either. They are all proprietary engines or Unreal nowadays.

    I dunno what your definition of AAA is but Cities: Skyline, Hearthstone, Genshin Impact?

  29. Doesn't that depend on the font author providing a NL version?

    e.g if you want the FiraCode improvements[1] over FiraMono without the ligatures. Without editor support, you would have to build it yourself since they don't distribute a NL version.

    [1] https://github.com/tonsky/FiraCode#whats-in-the-box

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