Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
khaledh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
301.
▲
by
khaledh
5y ago
Django and PostgreSQL. No JS (except for occasional client side validation). Django has stayed out of my way most of the time, letting me focus on what I'm trying too build.
302.
▲
by
khaledh
5y ago
The switch from a mechanical HDD to a SDD was the biggest gain in performance I've seen from any piece of hardware. I still remember the time when HDDs were the norm and the agony of waiting on loading/accessing something from dis
303.
▲
by
khaledh
5y ago
A notable fact about the B5000 (1961; the first model of this family) is that it was the first commercial computer to implement (segmented) virtual memory. It was preceded only by Ferranti Atlas which was the first to implement paged virtua
304.
▲
by
khaledh
5y ago
Same here.
305.
▲
by
khaledh
5y ago
Exactly this! To quote myself from a couple of years ago: I wish the style of teaching complex programming topics walked me through the pain of making something work, exploring a few alternative solutions, showing the tradeoffs, and then af
306.
▲
by
khaledh
5y ago
That's how Mullvad VPN works (more or less). Click "Generate account" and you get a unique 16-digit account number; download the app and put in the account number and you're good to go. No email, no username, no password
307.
▲
by
khaledh
5y ago
I wasn't ready to share it yet, but here it goes[1]. It's at a very early stage, but should give you an idea of how to get things up and running under Nim. I didn't avoid malloc. I provided a simple bump pointer based heap to
308.
▲
by
khaledh
5y ago
I've also recently discovered the joy of system level programming. I've gone through a few iterations of writing a (incomplete) kernel from scratch using different languages. I started with a 32-bit kernel in C and got as far as p
309.
▲
by
khaledh
5y ago
Technically it's not a buffer overflow; it's an integer overflow bug.
310.
▲
by
khaledh
5y ago
Because of this unnecessary complxity in the webdev ecosystem, I switched my development career to other areas[^]. If I have to do webdev for a hobby project, I use Django and Postgres, with no JS frameworks whatsoever. It's liberating
311.
▲
by
khaledh
5y ago
+1. IMO the term "operating system" should be reserved for significantly original kernel/userland code.
312.
▲
by
khaledh
5y ago
This is the classic XY problem: https://en.wikipedia.org/wiki/XY_problem
313.
▲
by
khaledh
5y ago
There's no single book that I would recommend. What worked for me is to read the history of programming languages (and operating systems, to better understand the relationship between them). My recommendation is to read the original pa
314.
▲
by
khaledh
5y ago
Most of the 4.2MB of data is cacheable; only ~128KB gets re-downloaded on subsequent visits (about 100KB of which has to do with Google recaptcha). With compression, what actually gets downloaded on subsequent vists is on the order of ~60KB
315.
▲
Big Dummy's Guide to the Internet (1993)
(science.ksc.nasa.gov)
1 points
by
khaledh
5y ago
|
0 comments
316.
▲
by
khaledh
5y ago
Dupe: https://news.ycombinator.com/item?id=28219800
317.
▲
by
khaledh
5y ago
And babies should walk once they're born. Why go through the phases of learning and growing when you can just "walk".
318.
▲
by
khaledh
5y ago
Looks a bit similar to Fellow.app ( https://fellow.app ), but I'm glad there's more choices/competition in this space (good for innovation and for users). Congrats on the launch!
319.
▲
by
khaledh
5y ago
What worked for me is trying to develop my own kernel. This might be too low-level for you, but it helps immensely to dispel the magic around how code gets executed by the CPU and the OS. You'll learn how the OS achieves protection fro
320.
▲
Show HN: ELF Dump Utility in Nim
(github.com)
5 points
by
khaledh
5y ago
|
1 comments
321.
▲
by
khaledh
5y ago
This is a quick and and dirty utility to dump ELF file information written in Nim (similar to readelf and objdump). I wrote it to learn Nim, so don't expect much.
322.
▲
by
khaledh
5y ago
A better name would be "Computing Science".
323.
▲
by
khaledh
5y ago
JetBrains Mono: https://www.jetbrains.com/lp/mono
324.
▲
by
khaledh
5y ago
I love Fish. Here's my list of essential plugins: - jorgebucaran/fisher (plugin manager) - IlanCosman/tide (prompt) - jhillyerd/plugin-git (git abbreviations) - PatrickF1/fzf.fish (history finder, and other autocom
325.
▲
by
khaledh
5y ago
recursion vs. iteration, inheritance vs. composition, interfaces vs. abstract classes, etc. are design choices that depend on the problem being solved. Language syntax is different; it's an opinion of the language designer which gives
326.
▲
by
khaledh
5y ago
Then you end up with an ecosystem with mixed conventions. Not good IMO.
327.
▲
by
khaledh
5y ago
Good to know. Although I'd argue that this is something that I'd count _against_ the language. I'm also biased against languages that allow you to do the same thing in multiple ways (hint: Scala). Code bases tend to vary acco
328.
▲
by
khaledh
5y ago
I love python as well, and I literally just started exploring Nim yesterday, so this is very timely. The one thing that stuck out to me like a sore thumb is the camelCase convention. I know it's a minor thing (and a personal preference
329.
▲
by
khaledh
5y ago
When I was about 12 years old my dad got me a Sharp PC-1500 pocket computer [1]. It had 2KB of memory, a one line LCD display (156×7 pixels), and ran BASIC. I cut my teeth programming it and progressively creating more elaborate programs. A
330.
▲
by
khaledh
5y ago
From "Operating Systems: Three Easy Pieces" chapter on "Process API" (section 5.4 "Why? Motivating The API") [1]: ... the separation of fork() and exec() is essential in building a UNIX shell, because
More ›