Better HN
topnewbestaskshowjobs
Log inSign up

shortrounddev2

2,427 karma · joined Jun 15, 2023 (3y ago) · 1,641 submissions

Submissions

comment 3y ago · link · parent

I can see it being useful to have a feature which could validate if another user on a website is a human. e.g: on reddit or twitter, the user you're talking to has a little checkmark (not the blue checkmark) next to their name if they've been WEI validated. Rather than refusing to let a user use the platform, just letting other users know that the person you're talking to isn't a bot

comment 3y ago · link · parent

The cmake build prints that it finds cuda when I run the cmakelists (prints the location of cuda headers), however I dont see any noticeable difference between cpu-only and cuda builds. So if its not working then maybe there a CLI option thats required, or maybe cuda support is broken on windows

comment 3y ago · link · parent

I would hope whoever buys it donates it to the Smithsonian, but I would understand if they didn't

comment 3y ago · link · parent

Once, when I was 18, I went to an anime convention the next state over. I drove 3 friends and we shared a hotel room. We took lightrail into the city, but found that it was unreliable, so at the end of the night, we decided to try to hitch a ride with an acquaintance back to the hotel. He had a car which seated 5, so it was him, his sister, 3 of us, and then the last friend would take a cab.

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

To be perfectly honest, I know absolutely nothing about AI or Llama; I'm just a Windows C++ programmer so I wanted to provide cmake instructions for Windows, sorry. The .bin file is what I got from the OP's link

comment 3y ago · link · parent

It seemed like a nice company, but they always seemed out of time. It was difficult getting the recruiter to call me back, and they always scheduled things WAY out. They weren't even a big tech company, they were a mid size logistics company. Took me like 2 months of a handful of interviews to eventually tell them I'm not interested

comment 3y ago · link · parent

I was the same way. My struggle with the book was the way that Gibson presents new lore. He doesn't say "this is an ono-sendai deck; it allows the user to enter cyberspace. it connects to your head here, here, and here". That's how Neal Stephenson writes. Gibson just presents you with an in-universe object or character or company, and talks about it as if you already know what he's talking about, and it's up to you, the reader, to figure it out.

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 bet they hated you lol

comment 3y ago · link · parent

I believe a lot of tech choices made over the last 10-15 years were a result of zero interest rates by the federal reserve. I think some of these things were good tech, and others were made to compensate for the rapid influx of bad bootcamp programmers who were needed to scale businesses with the free money coming out of the fed.

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

In interviews I began to notice that as I went from junior to senior, I got more questions about scalability than I did about actual logic in Java or javascript. So I started focusing on infrastructure more.

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

Theres a growing crisis with dislocated young men who are unable to find purpose in life because they can't provide for a family which they don't have. Joblessness has more impacts than just financial: a man without a job is often a man without purpose. Even if his needs are taken care of (living with his parents), he is depressed and introverted, choosing to spend all his time inside at home, online. He has no friends, no girlfriend, and no hobbies that don't involve PC gaming

comment 3y ago · link · parent

I think it will affect men and women differently. I have read that men define themselves by their work more than women because of our innate instinct as providers. When women are laid off of their jobs, they dont take it as hard, psychologically, as men do. Men without jobs become depressed, introverted, and lose motivation to find new jobs. Women feel less useless because there's no instinct to become a provider for a whole family.

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

We've come full circle. When I was in high school (2013), smartphones had just started to become the default (i had a galaxy s2) and cell phones had been banned in-class since they became common for every teenager to have one (as early as 2007 for me, probably earlier than that for older millennials)

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

This is the plot to neuromancer

comment 3y ago · link · parent

You don't need bash or WSL to build on windows; windows runs it perfectly fine with CUDA as well

comment 3y ago · link · parent

check my comment elsewhere in the thread, I wrote build instructions for windows + Nvidia GPUs

comment 3y ago · link · parent

For my fellow Windows shills, here's how you actually build it on windows:

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

I use Chat GPT basically in lieu of google for programming questions now, with the caveat that you need to check its work. It's good at skimming through documentation, but I don't trust it to really write code. For newer things I use bing chat since it has access to more current information.

comment 3y ago · link · parent

TIS-100, Shenzhen IO

comment 3y ago · link · parent

I will move to Thailand and become an outsourced remote worker before I go back to the hell that is American office work

comment 3y ago · link · parent

I've never liked the argument that "the world around you was constructed by experts and scientists who knew complex math, therefore to interact with that world you need to know complex math".

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

I think any decent forum software can serve as a Q&A format. You can re-style the original post of a thread to be more prominent as the "Q" and then other answers as the "A"s.

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

Can you use breakpoints with your setup? In-browser or in-IDE?

comment 3y ago · link · parent

Any kind of company that starts out as a managed service and then moves to a self-serve platform/SaaS (my company right now)

comment 3y ago · link · parent

Yeah, the game was electromechanical. If that's the qualification for a video game, then pinball machines were video games too

comment 3y ago · link · parent

Mobile gaming isn't real gaming, it's virtual slot machines for toddlers and Apple should be ashamed for facilitating it

comment 3y ago · link · parent

Apple has always had contempt for games

comment 3y ago · link · parent

Reminds me of https://www.facebook.com/permalink.php?story_fbid=2146412825...

> 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

The US Government should absolutely do nothing to insulate crypto buyers from risk and scams. Crypto investment should be completely unregulated. Regulating it would both legitimize and incentivize crypto as an investment vehicle. Crypto provides no benefit to the world; the effect of investing in it is to create wealth from nothing without providing capital for businesses looking to expand their products or services. The less insulated crypto investors are from risk, the sooner that retail investors learn to ignore it in the same way they ignore lottery tickets and slot machines at the gas station.
1
495051
55