Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 10y ago · link · parent

My impression up until recently is that actually holding onto Yuan outside of China is near-impossible, is this no longer the case?

comment 10y ago · link · parent

the main thing being that side effects still aren't happening in the core, so the core is still referentially transparent.

comment 10y ago · link · parent

AplicativeDo solves this a little bit through using Applicative until the results are necessary for the next instruction, then opting for Monad instances

comment 10y ago · link · parent

Maybe this is a bit trite, but isn't the ordering given in Free simply the order of the code? At what stage does loss of information happen.

comment 10y ago · link · parent

I disagree with the sentiment that it's just a type.

I understand that you don't need much plumbing, but you're still following a pattern that you have used elsewhere when working on these.

The beauty is that there's usually exactly one way of doing it (so by definition it is the simplest way). But if you're coming from a language based around mutability and are just in front of an Haskell REPL, I don't think you find this very easily.

In my mind patterns are about agreed-upon architectures for dealing with common issues. Another example that comes to mind in typed FP languages are wrapper types to prevent misuse of values (wrapping user input, unwrapping via "escape" calls).

When you have a problem, usually you'll have one or two canonical solutions come to mind. Those are the patterns for me.

Though given how simple everything usually is, it involves a lot less boilerplate. Choosing the right type is still essential.

comment 10y ago · link · parent

It's always a bit frustrating to read people say that FP doesn't really have design patterns. Most of the OOP design patterns usually don't apply, but there are definitely design patterns.

The most universal one in functional programming is modelling mutating state. This is solved by placing the state in some container, and then building functions that take a state, and then return an updated state (maybe with a value). You can then build your program by chaining these state modifiers.

So instead of doing

   stack = [1, 2, 3]
   def pop_stack():
      return stack.pop()

   final_value = pop_stack()
   # stack = [1, 2]
you do

   initial_stack = [3]
   def pop(s):
      return (s[-1], s[:-1])

   popped_value, final_stack = pop(initial_stack)
   # final_stack = [1, 2]
   # initial_stack = [1, 2, 3]
You can then write programs like the following:

   def push(s, val):
      return ((), s + [val])

   def add(s):
      x, s1 = pop(s)
      y, s2 = pop(s1)
      return push(s2, x+y)

This seems sillier in python, but is essential to doing "real work" in immutable languages. Languages like Haskell offer syntactic tools to make the chaining be more natural, in particular.

comment 10y ago · link · parent

I guess so? Marge and Lisa both have major ticks/obsessions that kick in, just like the other two.

When the plot is about Home and Bart, the other two play counterpoint. But the opposite is true. Homer just ends up getting the main role so often that we assume that to be the default state of the universe.

comment 10y ago · link · parent

A related question: have you considered re-trying the "branch office" concept?

I know Boston was tried, but that was 6 years ago? Considering your increased scope + larger overall size of YC now, it seems doable to have a retry on that front.

comment 10y ago · link · parent

For Underserved Communities, there are social aspects that also need to be tackled.

Many many many many organisations target these kinds of communities to try and help them. People are often suspicious of the help, because there are also many many many organisations that try to exploit them! Misleading terms, much higher hidden fees, etc, etc. Many have almost no access to high-quality services, just misleading ones.

Tackling this trust issue is essential to any success. In particular, I think that a 1099-style service like Uber is a bad fit for building trust. Though there are other ways to help someone apart from 'make them your employees'.

comment 10y ago · link · parent

what are the advantages of a Mars colony? It's not like we'll be shipping things back to Earth.

I'm for exploration and all that but there's a pretty good point. Figuring out how to make the desert habitable on this planet is a pretty good test run for the Real Deal.

comment 10y ago · link · parent

I get your point, but I wonder how much YouTube content gets watched by the same person multiple times.

Like how long does a single person care about a video? Vlogs are pretty "read once"

comment 10y ago · link · parent

Realistically, what will happen is major service providers that are holding your coins will have an overlay network that has higher trust requirements.

Higher transfer rates, faster resolution. Only do "real" bitcoin transactions a couple times a day between players. Basically how all other high-frequency markets work.

comment 10y ago · link · parent

one thing is that the influence on standards will be pretty strong if you have the "main" implementation. So it requires trusting Google to go the right direction.

You can contrast Google's "the web as apps" with, say, Apple + Safari's more "web as documents + prettiness" approaches.

With at least 2 major implementations, even if Google doesn't want to do something, if Apple + Moz + MSFT does something, it's still possible to get it into the standard.

You can try getting into the standard without a single implementation but that's probably difficult without a vote of confidence from stakeholders

comment 10y ago · link · parent

For Kindle users like myself, I've bundled up the plan archive into a nice e-book format (one chapter per entry) to read through all of these:

http://rtpg.co/files/carmack-plan.epub

For those interested in the script, here's that:

https://gist.github.com/rtpg/4eb757c2c71ab20946bbd8156cd0533...

comment 10y ago · link · parent

Is there ever a reason to give equity for free?

If the person thinks they have valuable business connections, then they should be willing to invest to then reap the rewards of the connection.

comment 10y ago · link · parent

I would totally have paid $3 for advance access to the rest of the story at that point. I need to know!

comment 10y ago · link · parent

the point is that it's not a useful indicator for stopping random people.

"Oh, to catch the thief we are going to stop 100000 people" sounds absurd, after all.

Of course you can use the clue to exclude a bunch of people, but were you going to go around arresting random people on the street without this? Of course not, so why do it after.

comment 10y ago · link · parent

non-nullable types are excellent. It basically gives you implicit Maybe/Option.

comment 10y ago · link · parent

is McLaren public? If so, having a false PR can be slightly illegal in some jurisdictions

comment 10y ago · link · parent

If this fund's actual purchases are available, this is a thing you can check.

Would make for a good headline, too. "$60 Million for a coin flip!"

comment 10y ago · link · parent

I think there are other reasons, but I really dislike using my phone number as an ID.

Phone numbers are much harder to change , so if some annoying person gets a hold of it suddenly they can harass me across networks. This is a thing that actually happens! A big reason why I don't like telegram (even if everything else is awesome).

I'm cool with my account being linked to a phone number, but I'd rather avoid giving the phone number to people I want to talk to (instead handing out a network-specific username)

comment 10y ago · link · parent

kinda curious: how would you build something like Text Expander in this world? As a keyboard driver?

comment 10y ago · link · parent

Is there any project where there are 4000 "real" decisionmakers?

Though I suppose elections are kind of like this.

comment 10y ago · link · parent

well a beginner can't really grasp shorthand or kanji either, right? A beginner not being able to get things means that the learning curve is higher.

Most musical notation is meant for non-beginners, right? And a lot of the beginner confusion is from features that are useful for advanced users. So there's a tradeoff.

There might, of course, be changes to be had. But a lot of beginner confusion is because the higher-level abstractions are needed.

A good example in mathematical notation is order of operations. Why not just do left to right? Or just going with Polish Notation?

Standard order of operations work well for people working with large formula, because they allow you to write many common things without many parentheses. But mandatory parentheses + left-to-right only would be easier for beginners.

comment 10y ago · link · parent

That's kind of my point. It's all learned vernacular, so having inately understandable behaviour isn't as important as being consistent.

Though someone's saying that dragging the ion turns it into the eject symbol, which I hadn't noticed until now but is more reasonable.

comment 10y ago · link · parent

want to eject a disk? drag it to the trash can...?

I think Apple was good at keeping things consistent across apps, but the chosen metaphors were sometimes just as confusing (if worse) than the blessed windows one.

Not that it matters, everything is learned behaviour anyways. Consistency is already a great achievement.

comment 10y ago · link · parent

If the utility requires all the subsystems, then doesn't the dependency exist no matter how the code looks?

Of course you can refactor to reduce dependency scope at a code level(the essence of functional programming), but if in order to do X you need to access W, Y, and Z, then I don't see how code changes will affect this deeper truth.

comment 10y ago · link · parent

file size? It's not much, but it would still strip some stuff.

I'm still bitter that HTML/XML works based off of explicit closing tags (where you can mistakenly close the wrong tag) instead of something like braces.

4439.

The Two Minute Guide to Simple E-Books(rtpg.co ↗)

1 points · by rtpg · 10y ago · discuss

comment 10y ago · link · parent

https://en.m.wikipedia.org/wiki/Physical_unclonable_function it's called a physically unclonable function.

The page is a bit obtuse, honestly I might have misunderstood a part of it.

1
147148149
225