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 8y ago · link · parent

I think it's reasonable to expect HN readers to realise that threads have been merged, but it can be difficult to track down the article in question all the same.

Whilst complex threading might seem to counter the simplicty of HN, might it be reasonable to include a link to the original article when merging?

comment 8y ago · link · parent

> because it's apparently hard to work out all the ways that the method could be invoked

Simple example case of a statement that makes it impossible to minify function names:

    class Test { static func() { /* function code */ } }
    test[prompt('function to call')]()

comment 8y ago · link · parent

Picture of the Google Docs post on what they tried (which appears to no longer be available online) can be found:

https://femto.pw/6bsm.png

As a reference to the above poster.

comment 8y ago · link · parent

> It's super nice of you to offer, but I don't need any donations at this time. RawGit's server costs are minimal, and the lovely people at StackPath provide RawGit's CDN service free of charge. Thank you though!

comment 8y ago · link · parent

I might be missing something, but it seems like a fairly high quality README file. What do you feel is wrong with it?

comment 8y ago · link · parent

It's a relatively common name. I would say it might even be more common than the alternative of "code formatter". I do agree that the syntax of the language isn't changing, but it does seem like the phrase that has stuck.

comment 8y ago · link · parent

So, the first shift was manual labour being automated during the industrial revolution. Now slowly intellectual jobs are being replaced. The only unique aspect a human has after this are emotional jobs (psychiatrist, etc).

There are not enough emotional jobs that can be created to fulfill 7 billion people (a quickly rising number). I think we're going to need a shift in the mindset of people. Jobs aren't required, we should instead look at increasing recreational activities available to people and try to enjoy our lives.

comment 8y ago · link · parent

I'm confused. You want people to write all content for free? Whilst that works for a lot of people who do it in their spare time, it does restrict anyone looking to write professionally from contributing.

comment 8y ago · link · parent

It's not just JoshMnem who has this, the same happens to me. Running 69 on Windows.

comment 8y ago · link · parent

Not the parent commenter, but am currently using F-Droid and not Play services. It seems great for everything I wish to do on Android. Only exception is the game options, which are very limited.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

I must admit I don't know about Apple, but you can download APKs for Android that are equivalent to an executable.

comment 8y ago · link · parent

> 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.

comment 8y ago · link · parent

  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...

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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/

comment 8y ago · link · parent

This article seems to be garnering more attention over here:

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

comment 8y ago · link · parent

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

comment 8y ago · link · parent

That person appears to be getting paid a significant amount of that for advertising, _not_ for contributing to an open source project.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

I think tl;dr pages[0] might be more popular, on a similar topic

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

comment 8y ago · link · parent

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...

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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).

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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?
1
456
11