Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thamer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
331.
▲
by
thamer
6y ago
I have an NVIDIA Jetson Nano 4GB, bought it for ~$99 on Amazon[1] last December. The docs website has tutorials on how to install TensorFlow and it's pretty easy to get started. I got it to start playing with TF and it certainly did th
332.
▲
by
thamer
6y ago
Most browsers show a little speaker icon on a tab playing sound, that you can click to mute the tab.
333.
▲
by
thamer
6y ago
Oh, I would never compare myself to him and can only learn (a ton) from someone like him who can indeed do many things I cannot. Just something I found curious, I'm sure he has a good reason for it.
334.
▲
by
thamer
6y ago
Oh man. I had to deal with programs organized this way when you were my manager and I had tons of maintenance concerns :D Fun to run into you, Geo!
335.
▲
by
thamer
6y ago
Lots of parts can be used separately! The parser for code analysis or refactoring tools, the JIT to accelerate programs (anything state machine based for example is pretty much like a VM), the garbage collector to embed in other programs (e
336.
▲
by
thamer
6y ago
Currently composed of 85,624 lines of C code, mostly in quickjs.c (53,575 lines in that one file alone), but also with a couple other large ones. I can't say I understand the reason for such massive files. Surely it would be easier to
337.
▲
by
thamer
6y ago
Looks great, thanks for sharing! How does it compare to the February 2020 standard draft from IETF? [1] I was following the development of the Websocket protocol pretty closely when it happened and had to update my implementation[2] multipl
338.
▲
by
thamer
6y ago
Having to sync passwords manually sounds like a hassle. With 1Password all my credentials are on all my devices, always up to date. It integrates with the password management APIs on iOS so I can create an account on a computer and log in u
339.
▲
by
thamer
6y ago
I found the book "An Introduction to Lambda Calculi for Computer Scientists"[1] to be a good intro to these concepts. For those who want to go further, books by Henk Barendregt[2] are widely considered to be a reference to lambda-
340.
▲
by
thamer
6y ago
Agreed, it seems like most people making suggestions above are missing the point about credentials. The code they present explicitly references `config.DevelopmentConfig`: database = config.DevelopmentConfig.DB_DATABASE user = con
341.
▲
by
thamer
6y ago
I would highly recommend the video linked from this article: https://www.youtube.com/watch?v=m05abdGSOxY It's a simulation of the various ways in which the Starlink network could be arranged to route between satellites
342.
▲
by
thamer
6y ago
A TLA+ model would complement this article very well. Such a simple system is perfect to learn the basics of model checking.
343.
▲
by
thamer
6y ago
The average person who buys a $1,000 phone in 2020 and has no USB charger at home or charging brick from a previous iPhone or laptop or computer or anything to plug in the cable. Sure. There's probably someone like that, and they can
344.
▲
by
thamer
6y ago
But… you have no idea what the reasons were and how much each argument weighed. The CEO of Anker (they make chargers and charging accessories) estimates that 1 year of smartphone sales leads to 300,000 tons of e-waste from charging bricks
345.
▲
by
thamer
6y ago
It was a long regex, made of multiple parts with two OR'd together that looked very similar except for the last few characters. These two parts were trying to match a structured format, think of something like a domain name for example
346.
▲
by
thamer
6y ago
Recently I got a speedup that was literally 6-7 orders of magnitude by changing a few characters in a regex, which made it match its input in linear time instead of O(k^N) due to a crazy backtrack. The speedup I measured could have been eve
347.
▲
by
thamer
6y ago
This is pretty well done! I had to stop myself as I started to take some of these seriously :-) Feature idea for this website: when generating a prompt, don't leave it on the root page but change the address to something that can be us
348.
▲
by
thamer
6y ago
It might not even need to be that intense. Dr Fauci recently said in an interview that the U.S. would be in much better shape if everyone wore a mask for 6 weeks to dramatically reduce the spread.
349.
▲
by
thamer
6y ago
I've found AWS Lambda and Google Cloud Functions super useful to run automations, especially when used with the Shortcuts app on iOS. For example, I have a GCF that checks my clipper card's balance[1] when I touch it with my phone
350.
▲
by
thamer
6y ago
That was very well done, I really enjoyed it. I liked that a few of the exercises had multiple solutions; it's often the case in real-world use that various approaches can work. The exercises themselves do cover many common situations
351.
▲
by
thamer
6y ago
> Alternatively, it can be erased all at once with a flash of blue light. Once erased, the chip can record a new message or bar code. Wait… what? What's the point of this if you can re-write the original message on it after tamperin
352.
▲
by
thamer
6y ago
There's no perfect answer and it's always been a limitation to take into account. There are model-checking solutions which take a spec and generate code, but you don't get this with TLA+. In a way, you could make the same arg
353.
▲
by
thamer
6y ago
For the JVM it's worth noting that Project Loom[1], while so far focused mainly on concurrency features like virtual threads and continuations also includes a proposal to implement better tail calls in the JVM: > it is also the goal
354.
▲
by
thamer
6y ago
> scrypt, powers a popular cryptocurrency with a market cap over 3 Billion USD For those who (like me) were wondering what cryptocurrency this was referring to: Litecoin has a ~$3B market cap and uses scrypt. Dogecoin also uses it but h
355.
▲
by
thamer
6y ago
As M4v3R noted, what Vim does is not usually possible with just custom key bindings. If you're not familiar with it, I would highly recommend giving it a try; even as a beginner if you know only a few commands it'll still save you
356.
▲
by
thamer
6y ago
I don't know which JetBrains product(s) you are referring to, but in IntelliJ you can use ⌘ + B to go a symbol's definition instead of using your mouse/trackpad with ⌘ + Click. There's probably a similar shortcut in thei
357.
▲
by
thamer
6y ago
Looks pretty, but is there really no Vim extension? I couldn't find one on the Extensions page. This is a deal-breaker for me, I can't use an editor or IDE without Vim bindings, this would kill my productivity. Is one planned, may
358.
▲
by
thamer
6y ago
> The distance to the closest galaxy, Andromeda, is 2.537 million light years There are many (smaller) galaxies much closer than Andromeda: https://en.wikipedia.org/wiki/List_of_nearest_galaxies There's no re
359.
▲
by
thamer
6y ago
When it comes to web scraping, it feels like what is considered a crime is highly dependent on how eager prosecutors can be to charge you with unauthorized access. It is common to read tech articles about security vulnerabilities where web
360.
▲
by
thamer
6y ago
Thanks for sharing this, amazing short film.
More ›