Better HN
topnewbestaskshowjobs
Log inSign up

codefined

966 karma · joined Apr 30, 2017 (9y ago) · 308 submissions

Feeling like contacting me?

email - hn (at) femto (dot) host discord - Codefined#8017

I'm pretty open to talking about anything.

Submissions

comment 4y ago · link · parent

> Clarity is built by Microsoft, one of the largest technology companies in the world. Microsoft processes a massive amount of anonymous data around user behaviour to gain insights and improve machine learning models that power many of our products and services. Clarity is one of the ways Microsoft gathers this important data – and why we've made it available for free.

Looks like this is a data gathering effort by Microsoft.

comment 4y ago · link · parent

    let { value, weight } =
        if values.empty() {
            { value: 0, weight: 1.0 }
        } else {
            { value: values[0], weight: 1 / values.len() }
        }
Using JS style object expansion, instead of tuple expansion.

comment 4y ago · link · parent

Looking at the Dutch site on my phone (Samsung S10) I noticed it took a little while to load compared to the nigh instant loading of the UK Gov variant. Looking at Page Insights [0] [1] tells a similar picture. Desktop time to interactive times of 0.4s Vs 3.5s and Mobile time to interactive times of 4.5s Vs 13.1s.

The Dutch website seems to spend a lot of that time running the Next JS framework stuff, which the Gov.uk variant does not. It might work quickly on fast computers, but even on modern phones it seems to visibly pause.

comment 4y ago · link · parent

Interestingly, doing a similar analysis where we bucketed each word into 243 (3^5) buckets based on the possible result, we found "RAISE" as the best word. Source[0]

[0] https://gist.github.com/popey456963/a654e98d0180566b897b70ee...

comment 4y ago · link · parent

Not a Slack user here. Is the app version _slower_ than the website? I assumed that since Electron is only a little bit more than a Chromium wrapper that they would have identical performance.

comment 4y ago · link · parent

Most important thing for me is the latency of the streaming solution. Discord seem to do really well here, with <1 second latency times. You done any measurements with your solution to suggest how much latency there is between the server and the client?

comment 5y ago · link · parent

Hah! I'm not sure my MVP has ever had error handling beyond "Something went wrong.". That's something for a real production app, not the minimum possible product.

comment 5y ago · link · parent

I wonder if per-tenant cache structures might become more popular in the future. It isn't unimaginable that different tenants will be running different things anyway, so split caches might still keep a reasonable amount of effectiveness.

comment 5y ago · link · parent

Have you tried practicing specifically to improve your typing speed on QWERTY keyboards? I started doing ~10 minutes of typing tests a day using MonkeyType[0] and KeyMash[1] and can now pretty reliably type 200+ WPM.

Lots of people try out Workman / Dvorak / Colemak, but I see very few top typists using custom keyboard layouts. You can definitely.

[0] https://keyma.sh/ [1] https://monkeytype.com/

comment 5y ago · link · parent

I assume he's referring to this site[0]

[0] https://thehackernews.com/

comment 5y ago · link · parent

I think you could use the CacheStorage[0] framework for this, but IIRC it's not got a great size per domain and is limited by a varying amount of 5MB to 100MB depending on browser.

[0] https://developer.mozilla.org/en-US/docs/Web/API/CacheStorag...

comment 5y ago · link · parent

There are non-malicious issues related to prototype pollution. The most recent that comes to mind are packages overwriting each other. How do you handle two enhances that add the same function name? In JavaScript the second overwrites the first, which can cause issues if the functions do different things.

comment 5y ago · link · parent

I'm not sure I'm a fan of the 'Enhance' concept[0]. It seems to be similar to prototype Pollution in JavaScript[1] which is generally considered bad practice. I can't tell, is `Enhance` scoped to the current context? Or does it affect all of that type throughout the rest of the program?

[0] https://lang-senegal.web.app/docs/enhance [1] https://portswigger.net/daily-swig/prototype-pollution-the-d...

comment 5y ago · link · parent

From the guidelines[0]:

> Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something.

[0] https://news.ycombinator.com/newsguidelines.html

comment 5y ago · link · parent

Quantum tunnelling has already become a problem in most computer components. NAND flash was the first in maybe 2015 to start reporting seeing issues?

Effects are moderately visible and have to be counteracted at 5nm. I heard some rumours about 7nm, but cannot confirm any countermeasures were taken to avoid quantum effects.

It should be noted that "3nm" is now purely for commercial reasons and has no relationship to the size of transistors on board.

comment 5y ago · link · parent

Rust and JS both have a very small standard library. This is what unites them in a 'dependency hell' of having to handle thousands of packages for most projects.

Other languages that don't face this, e.g. Python, have very large standard libraries which already include a dizzying array of features. E.g. take a look at some of the things you get with standard Python[0].

- sqlite3 (DB-API 2.0 interface for SQLite databases)

- bz2 (Support for bzip2 compression)

- sunau (Read and write Sun AU files)

- netrc (netrc file processing)

- curses (terminal handling for character-cell displays)

- mailbox (manipulate mailboxes in various formats)

[0] https://docs.python.org/3/library/

comment 5y ago · link · parent

I found the exact same issue! Here's a .bashrc snippet you can steal to extract from a multitude of files.

It doesn't quite have the number of features your library does and only supports extracting.

[0] https://github.com/popey456963/bashrc/blob/gh-pages/bashrc.t...

comment 5y ago · link · parent

For me it appears to be at the bottom of the page on desktop[0]

[0] https://imgur.com/ijdBKow

comment 5y ago · link · parent

Downloading a Python package (as done by scrapers, mirrors and security analysts) does not run setup.py. Only if the module is installed is this run.

It's analagous to downloading vs. running an executable.

comment 5y ago · link · parent

On desktop I can see this email address under the features: 'larry@cloudsidecar.com'

comment 5y ago · link · parent

Now I guess we just look through crtasm's history for what has caught dang's eye. :)

comment 5y ago · link · parent

Your source seems to contradict 'six buliding collapses per month':

"A six-story building collapsed Friday night in Nairobi, killing at least a dozen people. Several buildings in Kenya have collapsed in the past year. Why?"

comment 5y ago · link · parent

Nope, just convention.

comment 5y ago · link · parent

Once a certain threshold is reached, your account can flag posts. However, for things like FT you can use archive.is to view it past the paywall [0].

At the moment your karma is -2, I'd perhaps recommend you try to make insightful posts that add to the conversation.

[0] https://archive.is/yauDm

comment 5y ago · link · parent

Not a bad solution, :)

When you're a hammer, everything looks like a nail, etc.

56.

Ask HN: How do I allow my deaf friend to hear the door?

2 points · by codefined · 5y ago · 5 comments

comment 5y ago · link · parent

Judging by https://github.com/Mayandev (好奇心), the user is Chinese. Wiktionary reports that the symbol (https://en.wiktionary.org/wiki/%E3%80%81) is used as a comma in Japenese & Chinese languages.

comment 5y ago · link · parent

Interesting. Mileage may vary by company / area of work. I didn't go to Uni and went straight to work. Got a few A-levels but nothing special.

Wasn't even asked about them for my first job.

12345
11