bsurmanski

Joined 11 years ago

Karma
250
Submissions
66
Member since
Feb 12
Brandon Surmanski

Computer Engineering Graduate from the University of Ottawa, Canada

Software Engineer at Google

Working on the OWL programming language: https://github.com/bsurmanski/wlc

twitter: bsurmanski

View on Hacker News

Recent submissions

Comment · 2 years ago
This would be amazing for Nintendo DS emulation
Comment · 3 years ago
To stretch out the metaphor, asking a knowledgeable coworker could be "read from RAM", then documentation could be "read from disk"; or vice versa. But I find having someone to bounce questions off of easier than reading docs
Comment · 3 years ago
Not op, but I bought one. It's essentially a Linux laptop with a control interface built in. For emulators and steam games, it's really nice to have an option to play on the tv (with the dock). I don't see it being an especially nice coding experience; you'd need an external keyboard, mouse, and monitor. And without a dock, all it has is a single USBC port. Though it has a full KDE desktop, so it should be feasible.
Comment · 4 years ago
It mostly comes down to the fed, and their response to inflation.

If you think their response will reign inflation in check, we'll probably see the market 'crash' and a recession like the late 80s.

If you think their response will be soft, and persistent inflation is the new norm, we'll probably see the market act more like the 70s.

Maybe they walk the line, but I don't see how that's possible. Monetary policy is just so of-the-mark right now.

Another screwball is WFH. That could sap demand for large cities and push demand in suburbs and smaller towns.

Comment · 4 years ago
I think for something this checking the source for the generation algorithm is fair game. here it is:

  function randomInt(n) {
    return Math.floor(Math.random() * n);
  }

  function randomPassword() {
    let letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    let digits = '0123456789';
    let punctuation = '!"#$%&\'()\*+,-./:;<=>?@[\\]^_`{|}~';
    let s = letters.repeat(7) + digits.repeat(4) + punctuation.repeat(3);
    let length = 14;
    let res = Array.from({length}, (() => 
      s[randomInt(s.length)])).join('');
    return res;
  }
looks like it's 14 characters long, and each character has an independent 72.8% / 8% / 19.2% chance of being a random letter / digit / punctuation. There are 94 symbols total, so 94^14 possible solutions; roughly 92 bits of entropy. Even if you assume 10 letters, 1 digit, 3 punctuations (the "likely" distribution) it's still 75 bits of entropy. You might be able to gain an advantage through knowledge of the PRNG state, but the PRNG in v8 (xorshift128+) has a period of 2^128 - 1.

So not great odds...

Comment · 5 years ago
The movie title is: "Anger Management", starring Jack Nicholson and Adam Sandler
Comment · 5 years ago
I'd say it depends on what you're shooting. I have a d5600 and Z5.

The Z5 is better for baby pictures.

The d5600 is still better for hiking and travel pictures.

The Z5 is better under low-light and dynamic subject conditions. Particularly because the digital viewfinder is clearer in the dark, the eye/face autofocus and low light autofocus performance is much better (much fewer missed shots), the Z5 has sensor-shift stabilization, and there is no mirror slap affecting lower shutter speeds. For landscapes where there is lots of light, a lightweight and battery conservative d5600 still does the job excellently.

Comment · 5 years ago
There's a song titled "Jumping Frenchmen of Maine" by the instrumental post-rock band "El Ten Eleven". They're my goto coding music
Comment · 5 years ago
heh, good luck finding a house worth less than 30% of your net worth.
Comment · 6 years ago
Everyone is hesitant to make change because "it's going to cause too much economic impact". If someone demonstrates that it's possible to change without screwing over their economy, it's likely other states and countries will follow.

Just because the USA has federal administration that doesn't want to act on climate change right now doesn't mean that it won't get a greener administration in the future.

As for being a lost cause, isn't it preferable to minimize the effect, at least? would you rather the sea levels go up by 2.0 meters or 1.5 meters?

Comment · 6 years ago
For me, the biggest benefit of the university structure was 1) teaching me things I didn't even know existed and 2) teaching me things I didn't think we're important (but turned out to be).

(1) might be solvable with an online curriculum, but (2) requires an evaluation or end-game credential to force me to do it.

Other than that, as you mentioned an even bigger benefit was social, the shared experiences with others, and the cross pollination of ideas from these other people

Comment · 6 years ago
This is the voting mechanism used in the game "Civilization VI" (Gathering Storm expansion), if you are interested in checking it out
Comment · 6 years ago
my guess is that people that are well off (rich) still have their income stream. A lot of tech workers, CEOs, etc are working from home. It's poor (or middle class) people (working in retail, tourism, food) that are disproportionately affected by this. In 2008, it hit rich people first, then "trickled down". So, the rich are seeing this as an opportunity to offload some extra cash onto the discounted markets.
Comment · 6 years ago
I just looked it up and turns out that's my favourite stroke! I didn't know it had a name, I just called it the "Jellyfish" :)

I don't think I was ever taught it. I think I just discovered it playing around in the water one day.

Comment · 6 years ago
The main reason its only for illegal activities right now is because (for almost every case) it provides no advantage over using a credit card.

The biggest problem is the user now owns liability. With a credit card, if someone steals your card you can call up the provider and get the charges reversed. Without a centralized authority, if something goes wrong with your bitcoin account your out of luck.

Other than that, its somewhat inconvenient to get your hands on it. BTC exchanges feel a little shady. And it's not as private as you'd think. All of your transactions are public.

On the plus side, you don't need a credit card provider to bless your business, so sketchy or illegal businesses are free to transact online now. And lastly, it's decoupled from any one government. But that's not a benefit unless you live in a volatile region.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton