2,427 karma · joined Jun 15, 2023 (3y ago) · 1,641 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
This 24 year old called his mom to ask if it was okay if he drove some people in his car. A car that he owned. His mom said he could drive one person.
We said "nevermind, dude, we'll just all take a cab". This was 2013.
comment 3y ago · link · parent
comment 3y ago · link · parent
He even does this with narrative. Two male characters will be having a conversation, and all of a sudden the next line will say something like
> "[dialog]", she said
Without introducing who SHE is. You have to wait for the next page to figure out, based on her description.
It drove me insane for years, but now I like it and I've gotten used to it. I like count zero and its characters more than neuromancer. I'm reading virtual light right now but am taking a break to read John Romero's Doom Guy. I'll get to Mona Lisa Overdrive eventually
comment 3y ago · link · parent
I think with a more selective job market, people can make tech choices based more on tech and less on labor
comment 3y ago · link · parent
For one interview, the take home challenge was to write a bit.ly clone. I decided I would show off my abilities to do load balancing on the web server and horizontally scale a database.
I wrote my application with a dockerfile for ease of deployment. I set up multiple A records to point to each docker container's IP for a simple DNS round robin load balancing. Each container had a unique hash string printed in the bottom right corner of the website so you could demonstrate to yourself that load balancing was occurring.
I set up 3 postgres databases with simple modulo hashing for each shard; I use an 8 character hashing function (forget which) and did a modulo on the number of shards. This directed each shortened link to its relevant shard, with the shortened form of the link as the key (note: this is not the best solution to the problem; look up consistent hashing if you want a better solution). Which database connection string to use depended on the result of this modulo
All this was deployed with relevant kubernetes service and deployment yaml files, with ci/cd hooks provided by my VPS (I think vultr or digitalocean)
When I was explaining all this in the interview, I was actually interviewing with someone who was lower ranked than the job I was interviewing for (she was a junior engineer with maybe 2 or 3 years of experience, I was interviewing for a mid level role with 5 years of experience)
She said "so, it seems like you're more interested in devops than application development?"
I said "no, I actually really hate devops, but these are the skills I get interviewed on most so its what I practice".
I didnt end up taking that job.
comment 3y ago · link · parent
comment 3y ago · link · parent
Personally, if my job was made irrelevant by AI and I was able to reao the rewards through universal basic income, I would be very unhappy indeed.
comment 3y ago · link · parent
I guess at some point teachers gave up trying to enforce the rules. Or the idea of being away from your phone for hours at a time became strange to everyone. Or maybe teachers thought they could incorporate phones into lesson plans.
Anyway, I think we were better off not being allowed to use our phones in class.
comment 3y ago · link · parent
Before steps:
1. (For Nvidia GPU users) Install cuda toolkit https://developer.nvidia.com/cuda-downloads
2. Download the model somewhere: https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolv...
In Windows Terminal with Powershell:
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
mkdir build
cd build
cmake .. -DLLAMA_CUBLAS=ON
cmake --build . --config Release
cd bin/Release
mkdir models
mv Folder\Where\You\Downloaded\The\Model .\models
.\main.exe -m .\models\llama-2-13b-chat.ggmlv3.q4_0.bin --color -p "Hello, how are you, llama?" 2> $null
`-DLLAMA_CUBLAS` uses cuda`2> $null` is to direct the debug messages printed to stderr to a null file so they don't spam your terminal
Here's a powershell function you can put in your $PSPROFILE so that you can just run prompts with `llama "prompt goes here"`:
function llama {
.\main.exe -m .\models\llama-2-13b-chat.ggmlv3.q4_0.bin -p $args 2> $null
}
adjust your paths as necessary. It has a tendency to talk to itself.comment 3y ago · link · parent
comment 3y ago · link · parent
The argument that Pixar software engineers (not the animators) know linear algebra and calculus, therefore you as a viewer of the movie need to know it is nonsense, and most people can see through that.
As I see it, most people don't need to know more than high school level Algebra. Maybe trigonometry. As engineers, we think that the world needs to know what we know, but they truly don't
comment 3y ago · link · parent
A forum I used to be a part of created their own forum software from scratch to revive the now-defunct facepunch forums:
Forum: knockout.chat/
Software: https://gitlab.com/knockout-community
comment 3y ago · link · parent
> Several things over the years made me conclude that, at his core, Steve didn’t think very highly of games, and always wished they weren’t as important to his platforms as they turned out to be. I never took it personally.
> Part of his method, at least with me, was to deride contemporary options and dare me to tell him differently. They might be pragmatic, but couldn’t actually be good. “I have Pixar. We will make something [an API] that is actually good.” It was often frustrating, because he could talk, with complete confidence, about things he was just plain wrong about, like the price of memory for video cards and the amount of system bandwidth exploitable by the AltiVec extensions.
1499.
Ask HN: What is your workflow for developing with WASM?
8 points · by shortrounddev2 · 3y ago · 3 comments
comment 3y ago · link · parent