HackerTrans
TopNewTrendsCommentsPastAskShowJobs

btbuilder

no profile record

comments

btbuilder
·3 mesi fa·discuss
~1.5 billion train journeys a year is “functional”.
btbuilder
·6 mesi fa·discuss
0C = Frozen!
btbuilder
·9 mesi fa·discuss
It’s hard to answer without specifics but languages shouldn’t require you to determine whether it’s safe to use an api in an async context or whether it will hang your app. I imagine some of the sharp edges you might have run into are because go has real parallelism and you have to address data sharing.
btbuilder
·9 mesi fa·discuss
This is fantastic progress for CPython. I had almost given up hope that CPython would overcome the GIL after first hitting its limitations over 10 years ago.

That being said I strongly believe that because of the sharp edges on async style code vs proper co-routine-based user threads like go-routines and Java virtual threads Python is still far behind optimal parallelism patterns.
btbuilder
·9 mesi fa·discuss
Right, in a 3rd-party library.
btbuilder
·9 mesi fa·discuss
Segfaults with no use of “Unsafe” equivalents in managed languages can give immediate indication it’s not a code problem.
btbuilder
·2 anni fa·discuss


  input_string = "VMS"
  output_string = ''.join([chr(ord(char) + 1) for char in input_string])
  print(output_string)
btbuilder
·3 anni fa·discuss
I did this for several years before but it was a constant maintenance burden because as third party services were integrated or removed over time. Eventually as AWS and third-party CDN usage grew routing by subnet was just not feasible.
btbuilder
·3 anni fa·discuss
I built a program in Go to defeat GeoIP lock-outs for my home network.

It runs on our home router and functions as the primary DNS server. If the record name matches a regex the DNS request is forwarded over a VPN to a DNS server in the target country. Any other requests are forwarded to my ISP’s DNS. If the response is a CNAME then the A record name is cached so that follow-up requests are also forwarded over the VPN.

Before returning the IPs in the foreign DNS response /32 routes for the IPs are added to send any home network traffic for them over the VPN.

This means that any client on our home network can transparently access GeoIP locked sites. It’s worked for around 8 years with no modifications.