HNHacker News
TopNewBestAskShowJobs

codefined

966 karma · joined April 30, 2017

Feeling like contacting me?

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

I'm pretty open to talking about anything.

submissionscomments
codefined··on Goodbye Hjson
Not having comments is massively detrimental to most of our configuration use cases. Being forced to replace line-breaks with \n is also really painful for longer strings. HJSON was great at solving both of those.
codefined··on Apple and Google Face Growing Revolt Over App Store ‘Tax’
I must admit I don't know about Apple, but you can download APKs for Android that are equivalent to an executable.
codefined··on Apple and Google Face Growing Revolt Over App Store ‘Tax’
> Netflix Inc. and video game makers Epic Games Inc. and Valve Corp. are among companies that have recently tried to bypass the app stores or complained about the cost of the tolls Apple and Google charge.

Valve appear to even be complaining about the 30% fee, that is _equivalent_ to their own fee.

codefined··on Liftoff: a new baseline compiler for WebAssembly in V8

  for (let i = 0; i < a.length; i++) {
    a[i] = a[i]*2
  }
Has to be converted into something that can be run onto a machine that won't cause a fatal error if the array `a` doesn't have an item at index `i` (e.g. negative index). It can be converted to the following by a naive compiler:

  for (let i = 0; i < a.length; i++) {
    if (i > 0 && a < a.length) { // safe to access
      a[i] = a[i] * 2
    } else {
      throw('in a safe way')
    }
  }
Or, to avoid repetitive checks to a.length:

  const temp = a.length
  for (let i = 0; i < temp; i++) {
    if (i > 0 && a < temp) { // safe to access
      a[i] = a[i] * 2
    }
  }
A more advanced compiler might realise that the if statement is irrelevant, we've defined it in the loop that we'll never have a negative `i` or one above the length of the array, so we can just avoid those checks entirely and actually revert back to the original code to compile. This is not always the case:

  const temp = a.length
  for (let i = 0; i < temp; i++) {
    a[i] = a[i]*2
  }
This comes up in interesting places, like why it is faster to go through an array backwards than forwards[0].

[0] https://stackoverflow.com/questions/8689573/why-is-iterating...

codefined··on SQLite – The “server-process-edition” branch
I think the idea is that if your service does more, it necessarily needs more work to maintain. From a simple point of view, there are just more moving parts to go wrong.
codefined··on Serverless Docker Beta
You would probably use something like a queue[0] that takes in data from the websocket and dishes it out to lambda functions. You might also use something like Kinesis[1] or other alternatives.

[0] https://aws.amazon.com/sqs/ [1] https://aws.amazon.com/kinesis/

codefined··on AWS error exposed GoDaddy business secrets
This article seems to be garnering more attention over here:

https://news.ycombinator.com/item?id=17741592

codefined··on TinyEditor: A functional HTML/CSS/JS editor in less than 400 bytes
The provided index.html is optimised for readability, so it has a lot of extra whitespace. If you minify it, which results in the same content, it reduces to 337 characters[0]

[0] https://femto.pw/irb7.html

codefined··on Parinfer – Simpler Lisp Editing
That person appears to be getting paid a significant amount of that for advertising, _not_ for contributing to an open source project.
codefined··on Redditors with absolute powers
I'm the manager of several Reddit communities and a few gaming communities, so far I've banned ~3,400 people from using these services for periods of time ranging from one day to 1,300 permanent bans. In this time I've met with a fairly large number of other people in a similar position to me.

The thing almost all of them have in common is that you have to try to be harsh in order to be able to curate a kind community that people actually want to be a part of. When I see you're replying in an equally harsh way to the first person I personally see you as being bad as that person. So what if they started it? That's an argument that small children use.

Reddit is a really toxic place, as are a lot of the games that I host servers on. It really easily goes to people being rude to each other which kills the mood for everyone involved.

codefined··on PeerTube, the “Decentralized YouTube”, succeeds in crowdfunding
I always considered my favourite system to be one where the discovery system was centralized, but the actual content itself and the ability to produce it was decentralized. So, for instance, you'd have "PeerTube" as a protocol for uploading your videos to be discovered, then you'd use something like "Youtube" to view videos from multiple peers. This prevents a massive amount of lockin as happens with the current services, but also enables all the QoS you expect from modern websites.
codefined··on Unified access to the best community-driven cheat sheets repositories
I think tl;dr pages[0] might be more popular, on a similar topic

[0] https://github.com/tldr-pages/tldr

codefined··on The Rise of Edible Insect Farming
We seem to have seen a massive, measurable improvement in lab grown meat in the past 2-3 years. Going down from hundreds of thousands of dollars to single digit prices[0].

I don't know how the market is going to respond, but if we get a similar decrease in price it should get a large market share, having no noticeable negative attributes.

[0] https://bigthink.com/ideafeed/answering-how-a-sausage-gets-m... [1] https://www.independent.co.uk/news/science/clean-meat-lab-gr...

codefined··on Space junk mission deploys from the International Space Station
Not looked into the technology, but wouldn't it need to put a ridiculously strong laser to have any effect on garbage at all? Solar sails have to have a really large surface area and a really low mass in order to get even a tiny amount of acceleration from photons, I don't see how we would be able to focus enough momentum onto tiny pieces of garbage in order to cause their orbit to decay.
codefined··on Samsung Kicks Off Mass Production of 8 TB NF1 SSDs with PCIe 4 Interface
I think they're actually talking about other items being the bottleneck as opposed to the rate at which you can grab information off of disks, so if you have any meaningful fraction of your data being hot at any one point there is no advantage between either.

Even with HDDs, if you actually want to use all your throughput you're likely going to have problems with the bus (rarely needs to be optimised in 99% of cases) vs the drives (needs to be optimised in all environments).

codefined··on Nvidia creates super slow-motion video smoother than a 300K fps camera
Any methodology for getting more information from less information is going to involve guess work at some point, surely? This guess work just happens to be helped along by having the results of (I assume) millions or more separate videos where they already had the higher speed footage.

This is also not extrapolation, rather quite the opposite, it's interpolation.

codefined··on Sucking carbon dioxide from air is cheaper than scientists thought
I haven't done chemistry in years, but I think you can fairly easily reuse the calcium carbonate pellet once it has been heated. I imagine the cost of energy is significantly less than the cost of the raw resources.
codefined··on Sucking carbon dioxide from air is cheaper than scientists thought
I feel the controversy comes from the fact that one side has a large fund of money and is biased towards keeping things the way it is, whilst the other has significantly less funding and does not earn any money, or likely even significant benefits from the other side (mostly the young and poor will be affected, neither of which hold as much political clout).

All studies should be held with skepticism, but (assuming skepticism is a "resource" that can be exhausted), we should likely focus more of our skepticism on studies that clearly benefit from the result of the topic being discussed.

codefined··on Announcing Rust 1.26.2
I remember reading a few weeks ago on Hacker News about a team of people who were working to mathematically prove that some of these issues are impossible in existing programming constructs. I can't entirely remember whether it was a thing people wanted to do or a thing that people were already doing, would you happen to know?
codefined··on Mastodon 2.4.0
In a similar vein, if there is no feasible way to remove information from a service (E.G. placing data in a blockchain), does that break the rules of GDPR?
codefined··on NPM proxy users receiving ERR 418 I'm a teapot
I'm not sure if it's a model thing or just that software has bugs, but lots of people really dislike Maven. Not sure it's an example of a good package manager.
codefined··on NPM proxy users receiving ERR 418 I'm a teapot
Yes, that status page is only for the registry.

This error was in how clients were appending ports to the HOST header.

codefined··on Ask HN: How do you feel about Slack developer communities?
The issue I have with Discord is the lack of threads. When you're helping multiple people at once threads can help distinguish who you're talking to. Or when you have multiple conversations happening at once it stops things getting confusing.
codefined··on The US is running out of bombs – and it may soon struggle to make more
Jane's Research implies that we're actually getting really good value for money from BAE. That and the fact that the UK has far less custom armaments implies that they could swap with far more ease than the US.
codefined··on Is K8s Too Complicated? 
Not sure if this was an accidental key press or something, but generally here we try to be constructive in our comments. "?" is a fairly ambiguous post to make, I'm not sure many people understand what it is you're questioning.
codefined··on Show HN: A Native Art Gallery for the Mac
I recently looked into doing this for my Windows laptop, but found that it halved the battery life. Is this also a problem with running stuff like this on Macs?
codefined··on Hyper 2, Electron based terminal
If you have a C++ compiler that works, you should be fine. I've never had an issue installing a package that isn't, in fact, a C++ issue.

Meanwhile, Python versioning of plugins is really broken, unless you use virtual environments. Maven seems to be fairly hard to integrate with IDEs (Eclipse seems to come bundled with a separate one, not sure about IntelliJ). Most other package managers I use don't have enough packages to be as useful.

codefined··on How to scrape anything on the web and not get caught
On a website I'd written we had pseudo-randomly generated URLs to show dynamic content (it was a game, the URL contained parameters). On each page we had this little widget that included five random configurations people might like to try.

A few times our website went down due to the load going >30, eventually I discovered Google was doing something funky, adding the dynamic domains to the "robot.txt" file fixed the issue. Then some other search engines / scrapers seemed to run into the same issue and started requesting hundreds of thousands of URLs per day (these pages were dynamically generated and took a moderate amount of compute power).

We eventually did have to implement basic anti-scraper rules because it was degrading the user experience.

codefined··on Teenager facing prison for downloading unsecured files from government website
In the UK and most of Europe, you cannot request the personal information of anyone else via a freedom of information request, since it is likely to contain sensitive information to that person.

For the UK, you can find out more information about the specifics of this from the data protection act, which includes clauses about FOI requests.

codefined··on T-Mobile Austria admits to storing plaintext passwords on Twitter
At least it's more efficient than PingFS[0]

[0] https://github.com/yarrick/pingfs

← PreviousPage 5 of 10Next →