Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samsquire
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
samsquire
3y ago
I don't mean that there is a 1-1 constant relation between C statements and exact assembly, but if you run gcc with -S or run objdump -b binary -Matt,x86-64 -D main.bin -m i386 ; (note: this command places the assembly and C co
92.
▲
by
samsquire
3y ago
Agreed. I find C easier to understand than the algebra of other languages such as Haskell, Ocaml, Rust because of how C statements correspond to assembly. Memory is just a big grid of numbered locations and computing is logistics between gr
93.
▲
by
samsquire
3y ago
I am curious, I recently wrote a naive hashmap for C. I am curious about iterating in insert and sort order. Is it possible for a hash function to maintain a sort relationship to it's input and output?
94.
▲
by
samsquire
3y ago
Thanks for this article. I agree. I wanted to explore "graph pageing". The problem with computer screens and large graphs is that they're awkward to navigate because the viewport is smaller than the graph, and you can only sc
95.
▲
by
samsquire
3y ago
I had an idea. What if you trained a markov chain and got weights of every pair or sequence of pairs for a certain length. Could you also do rotations with this information in vector space? With multiple points of freedom? What if you could
96.
▲
by
samsquire
3y ago
I think programming languages compose poorly. Monads and effects get nearer to problem we are trying to solve - tying specific behaviour to specific scenarios - but impose such as a high threshold of understanding that they are rarely used
97.
▲
by
samsquire
3y ago
I would like a super lightweight host process for interpreters that is similar to php-fpm and Erlang but can have shared state for database connections but the main interpreter is not a separate process but simply a function call. Serverles
98.
▲
by
samsquire
3y ago
Wow! Thank you for your hard work. I use python for all experimental work so this would speed up my scripting work, such as processing data from API calls or filesystem. Would be good if it could speed up Flask or Django applications. I wro
99.
▲
by
samsquire
3y ago
If you think of what is true as goodness and lightness then you'll never error and look at the darkness and think of the darkness as the truth. You have already made a choice which way to lean, maybe today you'll be one of the 10,
100.
▲
by
samsquire
3y ago
I've often thought "what is the minimum stack, with minimum moving parts that just scales endlessly?" If you reduced all the data flow of your distributed software (10,000s of machines, 100,000s of containers) to the number o
101.
▲
by
samsquire
3y ago
I hope people don't throw out the effective and well-thought out parts with the problematic parts. It happened with Macromedia Flash and it happened with Microsoft's Visual Basic. The JVM and industry attitudes to Java. PHP. We ha
102.
▲
by
samsquire
3y ago
It's positive and uplifting post and it is that too when a language works with how you think and is expressive and productive. It's unsatisfying to work against a learning curve if you are hitting obstacles. A language is one poss
103.
▲
by
samsquire
3y ago
I have dreamed about an extremely rich document which actually presents the internal state of the runtime and compiler. So all the abstract syntax tree and control flow graph, SSA and data structures are presented in different sections of t
104.
▲
by
samsquire
3y ago
Have you ever given serious thought to your spiritual health and your soul? It's another axis to grow.
105.
▲
by
samsquire
3y ago
I think games (and programming) cause us to feel competence. If you write an SQL query and it works or a Rust program and it produces the correct answer, you feel competent and empowered. That's your reward for playing the game. There
106.
▲
by
samsquire
3y ago
I will try to explain. My learning of TLA+ was ad hoc from reading existing code and just "playing with the TLA+ Toolbox". It's not obvious why a particular menu item, or particular sentence is important. A reference table of
107.
▲
by
samsquire
3y ago
Did you train yourself? On my first day of work I was given access to SVN and then had to piece together how to run the project. So I was bouncing around IntellIJ and all the various tools to make up a modern development environment. In wee
108.
▲
by
samsquire
3y ago
When you're learning something for the first time, it can be hard to know what mental model you need to have to be effective with the tool. Some documentation is reference material. With reference material you might navigate the refere
109.
▲
by
samsquire
3y ago
I think documentation MUST have screenshots. I was recently trying to work out TLA+ in TLA Toolbox and there is there is this screenshot in the documentation on this page on PlusCal: https://www.learntla.com/core/plusca
110.
▲
by
samsquire
3y ago
Wow, thank you for this. Good work! Some thoughts: I've often thought that unbuffered channels would cause scheduling thrashing - higher latency and lower throughput because you're swapping between stopping and starting processes
111.
▲
by
samsquire
3y ago
As an alternative to dedicated planning tools, you could try simple journalling to eke through your thinking. Just create a github repository (privately if you want) and update a README.md file and journal at the end chronologically or reve
112.
▲
by
samsquire
3y ago
Is this similar to graph colouring?
113.
▲
by
samsquire
3y ago
I encourage you all, you CAN do the things you set yourself up to do them. Procrastination is just not having all the ingredients in the right place at the right time so you can ACT with what is in front of you. From TFA in GTD methodology,
114.
▲
by
samsquire
3y ago
Thank you, I enjoyed this post. I am thinking that iteration is just traversal and traversal is just execution. Take iterators in C++ or standard library "algorithms" library in C++. Or iterators in Rust or in Java. You just want
115.
▲
by
samsquire
3y ago
I think Nodejs gets various things right. I really like the effectiveness of the Nodejs event loop and libuv. Async programming can create a mess with callbacks but the experience in Nodejs can sometimes be positive with promises or generat
116.
▲
by
samsquire
3y ago
Thank you for this. I really enjoy C (I'm a beginner). Segmentation fault. I should probably be using Rust. I really like how C maps to the machine and I find the semantics simple to understand compared to type systems. The semantics o
117.
▲
by
samsquire
3y ago
I haven't really kept up with frontend developments. My experience was with Knockout which I enjoyed and I did some hacky React more recently for devops-pipeline.com I am curious, to find the sweet area of maintainability + performance
118.
▲
by
samsquire
3y ago
I'm a hobbyist in this space. I have never used Seastar either, But I'm trying to design an "evented assembly" for efficiency in a thread-per-core architecture. I really want the next generation NodeJS equivalent to take
119.
▲
by
samsquire
3y ago
In my multithreaded ringbuffer and barrier I lowered latency from 10,000s-100,000 of nanoseconds to under 100 by alignment to 128 bytes to stop false sharing and pinning threads to an EVEN numbered core. I think hyperthreading interferes wi
120.
▲
by
samsquire
3y ago
If machines are still Turing tape machines at their heart that follow instructions as in assembly. Or we're all encoding behaviours as activations of vectors in English language prompting
More ›