libphonenumber
prechelt-phone-number-encoding
libphonenumber | prechelt-phone-number-encoding | |
---|---|---|
53 | 18 | |
15,998 | 29 | |
0.4% | - | |
8.8 | 2.7 | |
14 days ago | 3 months ago | |
C++ | Java | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libphonenumber
- Falsehoods Programmers Believe About Phone Numbers
-
Can anyone please guide me in finding a complete template list for the E.123 standard notation?
libphonenumber can format in many ways, you can find the national patterns in the metadata files https://github.com/google/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml
-
How to get data containing the Country, the phone country code and the mobile phone digits length?
For instance, the XML file https://github.com/google/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml contains Phone number metadata with possible lengths, broken down by countries.
- Google's library for parsing, formatting, and validating phone numbers
-
In today’s edition of the wild world of JavaScript…
From falsehoods developers believe about phone numbers :
-
How SMS Fraud Works and How to Guard Against It
This makes the assumption that Twitter blocked it due to SMS fraud. While that's a plausible theory an equally plausible theory is that they were worried about account hijacking and security (and allowed twitter blue subscribers to continue to use it on a you can pay me to be stupid context) which seems equally plausible.
I take issue with a lot of the assumptions in the article but this is funny:
> Identify and block premium rate phone numbers, using libphonenumber. Whilst this seems promising, I don’t know how reliable the data and how effective this approach is.
here's this purpose-built and well maintained* library from google which does exactly what I want but i'm not even going to consider it.
* the actual number database has been updated 5x so far this year: https://github.com/google/libphonenumber/commits/master/meta...
-
ChatGPT is falsely recommending us for a service we don't provide
Yeah, but you can probably use https://github.com/google/libphonenumber for that.
-
Validating phone numbers using Google's libphonenumber library
You can find the Github repo and documentation for the library here.
prechelt-phone-number-encoding
-
Benchmarking Java against Rust #3
You're looking at the non-optimized version. If you read the blog post you would've seen your suggestions had already been implemented.
- Help me find bottlenecks in this benchmark. I ported the Common Lisp solution to Zig and the Zig version is much slower?!
-
Optimising Common Lisp to try and beat Java and Rust on phone encoding 2/2
> it’s using Unicode-aware string stuff
Rust uses UTF-8 internally for Strings, so it's very efficient to parse a file into a String, then using slices to go through it... this is probably the best you can get as parsing ASCII input as UTF-8 is very efficient (the 0-bit is always zero in ASCII, the unicode decoder only needs to check that's the case for every byte, so it's not some kind of complicated computation it's doing to decode)...
If you use bytes for everything, you will make the whole code much harder to follow and it still won't run faster.
Check for yourself: https://github.com/renatoathaydes/prechelt-phone-number-enco...
-
Learning Common Lisp to beat Java and Rust on a phone encoding problem
This is a pretty introductory CL article, mostly a commentary on Norvig's solution to the problem. Still, I learned about the #. readmacro from it. The conclusion: "[The Lisp implementation] was the fastest implementation for all input sizes except the largest one, where it performed just slightly worse than my best Java implementation." GH repo at https://github.com/renatoathaydes/prechelt-phone-number-enco.... Sounds like he was mostly measuring the performance of the SBCL bignum implementation.
-
Revenge Of Lisp - Learning Common Lisp to beat Java and Rust on a phone encoding problem
Here are the commits I've made so far. If anyone wants to help write the most efficient possible Lisp implementation, please send suggestions here!
-
How to write fast Rust code
OMG you're right... I'm the author, and the reason it was allocating in my original code was that I was calling the operators on a reference to n. See https://github.com/renatoathaydes/prechelt-phone-number-encoding/commit/6683dc10cc4fb380abead632b87d94e8937f8377
-
How to write slow Rust code - Part 2 (a deeper look into what really made my code slow)
This commit show how to improve that: https://github.com/renatoathaydes/prechelt-phone-number-encoding/commit/561a7307b5574bd6fd7b8cc638abf6f29884b6ca
-
My battle to beat Common Lisp and Java (in Rust) on a phone number encoding problem. Sequel to "Revisiting Prechelt's Paper…". (and they didn't even optimize the Lisp code)
See https://github.com/renatoathaydes/prechelt-phone-number-encoding/issues/6
-
How to write really slow Rust code
I get the need to want to obsessively optimize the code. There's nothing more fun than to optimize something simple, artificial, and narrowly-defined. But y'all need to take a deep breath, step back, and realize that one blog post isn't going to suddenly define the language (nor should it personally define you).
-
How to write slow Rust code
source: https://github.com/renatoathaydes/prechelt-phone-number-enco...
What are some alternatives?
react-native-intl-phone-field - 🌐 Text Input Component for validating and formatting international phone numbers.
woo - A fast non-blocking HTTP server on top of libev
intl-tel-input - A JavaScript plugin for entering and validating international telephone numbers
prechelt-phone-number-encoding - Comparison between Java and Common Lisp solutions to a phone-encoding problem described by Prechelt
phonenumbers - Python port of Google's libphonenumber
doom-emacs - An Emacs framework for the stubborn martian hacker [Moved to: https://github.com/doomemacs/doomemacs]
freecarrierlookup - Lookup phone numbers’ carriers by screen-scraping FreeCarrierLookup.com
num-bigint - Big integer types for Rust
CountryCodePicker - Country Code Picker (CCP) is an android library which provides an easy way to search and select country phone code ( national code ) for the telephone number.
sb-simd - A convenient SIMD interface for SBCL.
awesome-falsehood - 😱 Falsehoods Programmers Believe in
prechelt-phone-number-enco