HackerTrans
热门最新趋势评论往期问答秀出招聘

btbuilder

no profile record

评论

btbuilder
·3个月前·讨论
~1.5 billion train journeys a year is “functional”.
btbuilder
·6个月前·讨论
0C = Frozen!
btbuilder
·9个月前·讨论
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个月前·讨论
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个月前·讨论
Right, in a 3rd-party library.
btbuilder
·9个月前·讨论
Segfaults with no use of “Unsafe” equivalents in managed languages can give immediate indication it’s not a code problem.
btbuilder
·2年前·讨论


  input_string = "VMS"
  output_string = ''.join([chr(ord(char) + 1) for char in input_string])
  print(output_string)
btbuilder
·3年前·讨论
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年前·讨论
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.