Hacker Newsnew | past | comments | ask | show | jobs | submit | more codezero's commentslogin

From your past experience, do you have anything constructive to tell this new team on how they can attempt to build a business without knowing the future that would make you more comfortable using it?

I ask because I see a lot of these dismissive comments on HN which end with "open source it" - and that doesn't seem like a super constructive piece of advice to a new startup team.

FWIW, at my current company, an analytics company, about five years ago, we made it clear that no matter what data we collected, if you leave the service or we shut down, we will get you all that data to take with you in a very reasonable format.

It's always risky to invest in a new service, but sometimes risks bring great rewards, and I think it's helpful if you're giving input, to try to make it constructive.


Build a cost model. Set prices that would make them profitable based on that model. Offer the service at that price. See if people are willing to pay for it. Verify that costs and profitability match the model.

If the model turns out to be inaccurate: A) Change the architecture to reduce costs to the point where it becomes profitable at an attractive price point for customers, or B) Move on to the next idea.

It's not that complex, and more startups should be more realistic about profitability.


I feel like there's too much focus on the price here, and the thing I am concerned with is that the original comment was about how services shut down and they didn't want to invest in the unknown. Paying for that seems doubly risky to me.

That said, I get your point that if you can create a model that gives you a good sense of future profitability, you are in a better position not to die as a company.


I think it's helpful to consider. You'll definitely need the cash to ramp up infrastructure


I think the concerns are related. The likelihood of a company shutting down is greatly affected by its profitability.


Start charging immediately, and put up a real pricing page with SLAs. Find out as soon as possible if people will actually value this enough to pay for it.

This provides a signaling of value, creates a real business relationship, and directly contributes to the lifespan of the vendor.


Not to diminish your point but that’s really hard to get right. Most early stage startups have absolutely no idea what their product is worth.


It doesn't have to be right from the get go. Hard is why it should get done.

A free model doesn't really tell their business if there's actually demand and if people actually value it when supply is "infinite" when in reality it isn't.

Guess a high price with some research for similar things and lower it iteratively. Def. see what sticks.


They could go the AWS route, start high and decrease prices.

Also they could combine this with discounts, such as if someone preallocates capacity for X month, they get f(X) % discount.

They should build a core customer base. Solicit feedback about what niche feature they would happily pay for.

For example here's a GitLab issue that I think people would (might?) use: https://gitlab.com/gitlab-org/gitlab/issues/15536 (provide a "lock service" or a queue with max concurrency gate and launch pipelines / jobs)


But that is my point. You won't know until you do it. It's a constant experiment, you just have to start somewhere.


If everyone avoided doing hard things, our world would be a lot worse off.


I think the point is: monitize now to reduce risk


People are often a lot more upset when they pay money and there is no exit plan. Shut downs can be abrupt and chaotic, suggesting they monetize immediately doesn't seem helpful either. If that's the suggestion, I'd ask: how much would you pay and how long do you expect notification in advance of a shut down? Do you expect a refund? Full or partial? Do you expect portability? If so, what kind.


$1/trigger/mo. 30 days. No refund if services were delivered, if I pre-paid then pro-rated refund. No expectation of portability.


I would feel much better paying them money for this than hoping it's free forever.


This seems plausible, it’s my understanding that a huge number of original and long term employees left the company in the past year or two. The prospects of a censored gravy train in China make ones personal financial prospects look good.


I’m the US the two are getting very close to being the same. Maybe not hate crimes per se. but discrimination supported by faith.

Not providing employees coverage for contraceptives, or firing someone for a low cut blouse, refusing to serve a gay couple, trying to make sexual orientation not a protected class from discrimination entirely is currently on the plate, all of these are pushed by faith based organizations.


I'm not sure that anyone concerned with Twitter's policies/content has focused on the retweet-ability of rule violating world leaders. This is a super shallow effort.

Edit: Though the article mentions that violating tweets are totally un-interactive, except that they can be quote retweeted. Still pretty shallow but slightly less than my original comment.

With that said - it's un clear to me what constitutes a rule violating tweet for a world leader. They should come out with some examples of what is and is not a violation, they should also better specify what a world leader is.


Regardless of the conversation about this being insufficient, I think it will still have a significant impact if actually employed.

Not only does it actually reduce the proliferation of these tweets, it signals that a line was crossed by a particular tweet.


The big problem I see, is this still does nothing to inhibit distribution to followers. In an echo chamber, everyone still sees it. It just protects people who already were going out of their way to not interact with it.


Twitter is not an “echo chamber.” A site that big simply has way too many conflicting opinions for that to be true.


It's not one echo chamber, but depending on who you follow, you could find yourself in one


send them the name of a file in your very old version of DOS?


I am not super up to speed on this news, but I had a quick look and my guess as to why you are being downvoted, is without context, it sounds like you are implying Ukraine may have had some role worth investigating in the shooting down of MH17.

That is not the case. It sounds like the consensus is that pro-Russian troops brought a missile over from Russia, and shot down MH17.

What the Dutch parliament is proposing an investigation into, is whether Ukraine should have officially shut down its airspace.

Implying that Ukraine is at fault for shooting down an airliner because they did not shut down the airspace seems like blaming someone for being raped and shot because they didn't lock their front door, which is patently absurd.


Just playing around with this data set, I can't understand why What3Words is so exciting. The dataset includes words with plural versions, different tenses of the same word, and words that are combinations of shorter words that are also in the data set.

If I'm listening to an emergency responder at ship.wreck.shipwreck, or was that at shipwreck.ship.wreck

There are probably a lot of ways to accidentally get confusion with such poorly groomed word combinations. Maybe they've come up with a clever way to make such combinations exist in the middle of the ocean, which would be a great place for a shipwreck.ship.wreck anyways :)


> If I'm listening to an emergency responder at ship.wreck.shipwreck, or was that at shipwreck.ship.wreck

Wow. They both work. One's in Sweden, and the other's in Alaska.

It seems the corpus has not been well thought out at all.


Also, the word "wreck" seems really inappropriate because of the silent w.


> Okay Sir/Madam, where are you?

I'm at https://what3words.com/broken.spies.wreck !

> There is no 'rack', did you mean https://what3words.com/broken.spice.back ?

No 'wreck'! As in shipwreck!

> Got it! https://what3words.com/broken.spice.wreck !


I love c4. The author writes very readable and simple code. I recommend trying out swieros as well “a tiny Unix like kernel”: https://github.com/rswier/swieros



Instead of just gazing at the sea of terse variable names in awe, try actually reading it! There's only about a dozen variables and they're all documented at the top - the actual code is actually amazingly clear for what it does. There's not a lot of gratuitous cleverness.

For example, just picking a random segment, you don't have to squint very hard to see that this is a number literal parser:

  else if (tk >= '0' && tk <= '9') {
        if (ival = tk - '0') { while (*p >= '0' && *p <= '9') ival = ival * 10 + *p++ - '0'; }
        else if (*p == 'x' || *p == 'X') {
        [...goes on to handle the hexadecimal case...]
(aside - I love the conversion from string to decimal by subtracting the string value of '0', as this will work for any text encoding where the decimal digits are monotonic and contiguous - so ASCII and EBDIC at least...)


> I love the conversion from string to decimal by subtracting the string value of '0'

That's how everyone did character arithmetic since forever, though, especially with the letters. Wouldn't be surprised if it's in K&R. And it probably became a subtle source of errors when environments changed, as mixing semantics and implementation tends to do.


>as this will work for any text encoding where the decimal digits are monotonic and contiguous

The C spec requires this be the case for both the source and execution basic character sets.


Very readable? It's on the cusp of becoming a demon summoning ritual.


A bit terse perhaps, but only thing that is a bit more than a simple tokenization/parsing and direct output is the precedence climbing part for parsing expressions. That may cause some headscratching for some if they haven't implemented it in the past. But it's easy to read up on that algorithm on wikipedia. Anyway, even using that ultimately makes code more readable than trying to implement the same with recursive descent.


yeah, I wrote a mini xml parser in python and the code is really similar ... I'm sure most handwritten parsers are. Or maybe I'm an anonymous demoniac in denial.


The major breakthrough of C4 is that it's both terse and yet still very readable; previously the only other well-known self-compiler of that size was OTCC, which is deliberately obfuscated.


While this is about C++, John Carmack just came from C, so a lot of this applies to C as well: https://kotaku.com/the-exceptional-beauty-of-doom-3s-source-...


Oh wow. That's quite something.


The usage of the 2 character variable names is a "refreshing". At least the author of the code was gracious enough for the following to help debugging.

    debug;    // print executed instructions


It's beautiful. Here are examples of compiling c4 and using it, following the README:

    $ gcc -o c4 c4.c 2>/dev/null
    $ ./c4 hello.c
    hello, world
    exit(0) cycle = 9
    $ ./c4 -s hello.c
    1: #include <stdio.h>
    2:
    3: int main()
    4: {
    5:   printf("hello, world\n");
        ENT  0
        IMM  -274739184
        PSH
        PRTF
        ADJ  1
    6:   return 0;
        IMM  0
        LEV
    7: }
        LEV
    $ ./c4 c4.c hello.c
    hello, world
    exit(0) cycle = 9
    exit(0) cycle = 26015
    $ ./c4 c4.c c4.c hello.c
    hello, world
    exit(0) cycle = 9
    exit(0) cycle = 26015
    exit(0) cycle = 10060183
It works on Windows too, if you have gcc installed.

Also, see "Adding support for 64 bit targets" commit:

https://github.com/rswier/c4/commit/2feb8c0a142b2e513be69442...

And yes, swieros has much more.


So it's not actually a compiler, it's a bytecode compiler + interpreter (like python) where the names of the bytecodes match what an x86 assembler would use, but the encoding doesn't (and it doesn't know how to create or link .exe ELF or whatever macos uses)


c4 is very cool, but it's not a compiler in the usual sense of the term. It compiles to a kind of bytecode which it then interprets (like Python, for example), but it doesn't generate assembly or machine code (like GCC or JIT compilers, for example).

But there's a more realistic compiler inside swieros: https://github.com/rswier/swieros/blob/master/root/bin/c.c that emits actual "binaries" for the emulated toy CPU. It's hard to tell what exactly is going on though, as this is not "very readable and simple code".


It's just a small step to generate machine code, this fork [1] can generate an executable, or run it JIT style, both on x86 (there's also the 'arm' branch)

[1] https://gitlab.com/pclouds/c4



I must be missing something about compiler design, but why does it seem to have an interpreter at the and of main?


You went to the code too fast (a mistake I also commit often, since unlike comments/doc, code doesn’t lie...).

From the project description: “A tiny hand crafted CPU emulator, C compiler, and Operating System”


Because one can overwrite the struct with arbitrary content, and that after the function that corrupts the struct is called, it executed a function that lives inside that struct, so the attacker can redefine the function to call out to the system (after a few other tricks - I think)


The third link is a dead link, but it looks like it's up here now: http://users.sussex.ac.uk/~andywu/gdca.html

The PDF is here: http://users.sussex.ac.uk/~andywu/downloads/papers/global_dy...


Thank you! I fixed the links, and added the link to the Doctor-Seuss-like pencil drawing.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: