HNHacker News
TopNewBestAskShowJobs

burntcaramel

465 karma · joined August 27, 2014

submissionscomments
burntcaramel··on Cloudflare Workers for Platforms: Make Your Own Product Programmable
It’s quite frustrating as a Cloudflare fan to read many of their blog posts and just not understand what they are promoting.

This post is an example, where I’m a developer, I just want to get to the concrete nuts and bolts. But we start off at a very high level, the problem often sounds a bit generic, and then it zooms into an example I just don’t get, I don’t have anything to compare it to or a concrete, real world example.

I don’t know if the Cloudflare blog has an editor, but I feel it needs one. There’s a lot of posts and I feel I have to trawl through to find the nuggets. The actual work that is produced is great, I just often don’t get how it is told through the blog.

burntcaramel··on $4.5M Seed for Theatre.js
At first I thought “$4.5 million for a JavaScript library!”

But I agree this focus is really compelling:

We are designing it to serve the unique needs of people who make web interactives, namely: - They require an especially close collaboration between highly talented artists and engineers - They routinely involve members of other disciplines like scientists, data storytellers, or educators - Their output requires uncompromising performance, and high graphical fidelity

These exceptionally challenging requirements inform the design of Theatre.js. Instead of building a “design tool” or a “dev tool,” we intend for Theatre.js to enable artists and engineers to collaborate on the same thing, fully own their tech stack, and build domain-specific tools on top. Our motion editor is one such example, with more domain-specific tools on the way.

burntcaramel··on The Session Extension
It’s called Spanner and TrueTime. Their docs are a good read: https://cloud.google.com/spanner/docs/true-time-external-con...
burntcaramel··on Casual Parsing in JavaScript
I’ve found generator functions work great for parsers. You yield the tokens you expect to be next. The token could be a string, a regular expression to be matched, or another generator function.

The library is open source here, contributions welcome: https://github.com/RoyalIcing/yieldparser

Generator functions have great support in modern browsers (not IE) and Node.js.

For example here’s a simple v4 IP address parser:

  import { parse, mustEnd } from 'yieldparser';
  
  function* Digit() {
    const [digit]: [string] = yield /^\d+/;
    const value = parseInt(digit, 10);
    if (value < 0 || value > 255) {
      return new Error(`Digit must be between 0 and 255, was ${value}`);
    }
    return value;
  }
  
  function* IPAddress() {
    const first = yield Digit;
    yield '.';
    const second = yield Digit;
    yield '.';
    const third = yield Digit;
    yield '.';
    const fourth = yield Digit;
    yield mustEnd;
    return [first, second, third, fourth];
  }
  
  parse('1.2.3.4', IPAddress());
  /*
  {
    success: true,
    result: [1, 2, 3, 4],
    remaining: '',
  }
  */
burntcaramel··on PlanetScale raises $30M Series B for its database service
The concept around ‘deploy requests’ is really interesting. GitHub established a solid mental model with ‘issues’ and ‘pull requests’, and so I am curious to see if the concepts PlanetScale has will become popular and easy to understand too.

I don’t quite understand if I’m suppose to deploy a schema change to my database before I deploy changes to my application code? Is there a certain workflow this fits into? Is it meant to be used with a build pipeline where updating the schema in my hosted database is just one step?

burntcaramel··on The right tag for the job: why you should use semantic HTML
What sort of apps do you think are difficult to get right, and would make good examples?
burntcaramel··on Pattern matching accepted for Python
I’m writing a TypeScript package for pattern matching by using generator functions.

https://github.com/RoyalIcing/yieldpattern

It’s amazing to me how much pattern matching, well, matches how I think. A conditional if statement means I have to explicitly read properties off an object or inspect an array to check for what I want. Whereas pattern matching means asking ‘I want something that looks like this’ and do the work for me.

burntcaramel··on FiftyThree, maker of Paper and Paste iPad apps, acquired by WeTransfer
FiftyThree’s announcement on their blog is here: https://medium.com/fiftythree-space-to-create/we-are-joining...
burntcaramel··on Markdown and mock = textmock
Nice to see someone else working on tools like this. I think Markdown has a good level of ‘accessibility’ in that the syntax is friendly while fairly capable.

If you’re curious, here’s some of my experiments (best viewed on desktop):

- https://datadown.collected.design/github/RoyalIcing/lofi-boo... - https://lofi.design/syntax/ - http://collected.design/research

Keen to collaborate with people!

burntcaramel··on Elixir on Google Cloud Platform and App Engine
Thanks for the rich reply. So you mention PaaS may not be suited for persistent processes. Do you think it could work well with Phoenix’s channels (web sockets)? As I understand, they create a process per user web socket connection. Phoenix also allows multiple nodes to discover and share these channels’ state AFAIK — are there any tools that make this discovery easier from Google’s side for Elixir to automatically connect the nodes, say when instances are brought up or down? I think it would be good to have this as part of the documentation if there is, as it would be a key selling point if it’s relatively easy.
burntcaramel··on Elixir on Google Cloud Platform and App Engine
A question: what are the pluses/minuses of deploying to App Engine vs Compute Engine. Specifically, what are the tradeoffs of Elixir on App Engine? Thanks in advance.
burntcaramel··on Reverse Engineering MacOS High Sierra Supplemental Update
I imagine StorageKit is a relatively new addition, or is tailored for UI applications. So I can see why it is not used by diskutil (which has been there from the early days of OS X), at least not yet.
burntcaramel··on Show HN: Kea – The power of Redux with the simplicity of MobX
Yes, you would be able to do a lot with the flexible recompose. I’ve tried to make something more friendly and lightweight that makes common use cases easier. I can find recompose a little overwhelming in the multiple layers.
burntcaramel··on Show HN: Kea – The power of Redux with the simplicity of MobX
I’ve made a lightweight React library influenced by functional setState, and supports async/await/Promises, extracting values from DOM / forms easily, pure function actions, animation with requestAnimationFrame, and reloading when props change.

I’ve put a lot of effort into providing some good examples (more coming!), and also on keeping it lightweight: core is 1.18KB gzipped.

https://github.com/RoyalIcing/react-organism

Feedback welcome, here or as issues!

burntcaramel··on Show HN: JSONSchema to TypeScript compiler
Oh that would be great! Glad to hear it looks straight forward.

Ok will consider JSON Schema support. Thanks!

burntcaramel··on Show HN: JSONSchema to TypeScript compiler
Yes, I’m trying to make something very user friendly, something that designers and product managers and junior developers could use with ease. I plan on adding a validator so that any mistakes are caught.
burntcaramel··on Show HN: JSONSchema to TypeScript compiler
I’ve made something quite similar, with a friendly hashtag syntax, that live updates into React PropTypes, Mongoose, Swift, Elm, Golang and more — https://schema.lofi.design/

Planning on adding TypeScript soon, and may do JSONSchema too!

It’s written in Elm, whose strict compiler really helps with avoiding bugs. https://github.com/RoyalIcing/lofi-schema-elm

burntcaramel··on Dear “Dear GitHub”
Open source surely benefits the majority of GitHub’s paying customers. So the way I see it, if this improves how open source projects are run, that will result in better libraries and tools for GitHub’s paying customers.
burntcaramel··on Apple Is Getting More Bang for Its R&D Buck
I created a file organization app Blik (http://www.burntcaramel.com/blik/) sold through the Mac App Store.

It’s purposefully very simple, as I hope to not expand too quickly and make something new that is also complicated. But I actively develop it and have some interesting features in the works, such as something similar to Smart Folders. Also, I love users’ feedback!

burntcaramel··on Show HN: Lantern, a dedicated Mac app for website auditing and crawling
Thank you. Testing is one of my biggest weaknesses. I get bored and negative about my own software when using it.
burntcaramel··on Show HN: Lantern, a dedicated Mac app for website auditing and crawling
I’ve open sourced the app (written in Swift 1.2) at https://github.com/BurntCaramel/Lantern
burntcaramel··on Deku: How we built our functional alternative to React
I think also the fact that Deku has a smaller file size than React.js is significant (10KB vs 118KB). That would have been more difficult with a fork.

If Deku looks solid enough I might consider using it. And hopefully it can influence React too.

burntcaramel··on ComponentKit by Facebook: A React-Inspired View Framework for iOS
And they can also branch out instead of wondering 'what if we didn't make React Native rely on JavaScript and instead just used Objective-C?'. Both approaches will have differing strengths and weaknesses and both teams (and hopefully future teams of new projects elsewhere) will have more knowledge and experience to learn from.

I think it’s quite amazing what Facebook/Instagram are doing. They are creating a legacy that will hopefully inform what Apple and Google do with their frameworks too.

burntcaramel··on Show HN: Ghostnote – Contextual notes and todo app
If you haven’t already check out the 'bookmark data' methods of NSURL: https://developer.apple.com/library/mac/documentation/Cocoa/...

However, I’m not sure if you can use these without the user choosing the file with an open panel, or with drag and drop. That’s what I had to rely on with my app Blik: http://www.burntcaramel.com/blik/

Ghostnote looks great, by the way!

burntcaramel··on “Implement text editor DOM updates manually instead of via React”
Also as an application gets more complex, it may be harder to keep the juggling act of mutable structures going, and keeping them as fast as they were before.

Mutable structures have a tax that you often must pay with complexity. Immutable structures and React’s declarative approach have more of a flat tax, with means complexity and performance are much more predictable.

burntcaramel··on Vivus, bringing your SVGs to life
Maybe instead of Delayed, Async, OneByOne, have: Staggered, Together, OneByOne

Keep the names friendly and not too technical.

burntcaramel··on Benefits of Selling Outside the Mac App Store
Dan and other indie developers talk a lot about the importance of doing your own marketing, even if you are in the App Store. And they also underline how being listed in the App Store isn’t close to the results of proper marketing. http://dancounsell.com/articles/thoughts-on-increasing-app-r... http://www.joecieplinski.com/blog/2014/12/22/building-a-show...
← PreviousPage 3 of 3