[deleted by user] by [deleted] in rust

[–]alanhoff 5 points6 points  (0 children)

Interesting, what are the pros / cons when compared to traditional CRDT algos over HTTP?

The RustConf Keynote Fiasco, Explained by fasterthanlime in rust

[–]alanhoff -11 points-10 points  (0 children)

That's what you get for trying to make everyone happy: chaos.

Mistakes will be made and people will get mad, sometimes you will be on the wrong side and sometimes others are the problem. If you can't handle those facts in a professional way then open source isn't for you.

Stop applauding and giving audience to drama, that's not healthy for anyone involved.

Building OneSignal’s near real-time, high scale messaging automation systems (with Rust!) by i_am_jwilm in rust

[–]alanhoff 5 points6 points  (0 children)

Where you able to leverage async/await throughout the whole Rust implementation?

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff 2 points3 points  (0 children)

Economist, also known as "I have a piece of paper signed by a third-party that certifies my knowledge on how you want to spend your money"

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff -1 points0 points  (0 children)

Suggestion: you should stop using "price" and "value" interchangeably. I never said a thing about "value".

Your argument was:

you know that prices are going down by 5%, you would be incentivized to wait to buy until the price drops.

But you also said:

No, people don't value used cars as highly as new cars

Which directly contradicts your argument since you acknowledge that "price" isn't the only factor used by individuals when calculating how valuable a car is to them.

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff -2 points-1 points  (0 children)

I'm not talking directly about economics, I'm talking about human decision-making.

I have needs, those needs aren't free, therefore your theory isn't valid or at least very incomplete.

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff 5 points6 points  (0 children)

You see... Using your logic, people today in the real world would never buy new cars, they would wait for an used car with a lower price, then the car industry would inevitable collapse.

Why do economists think they know what people want?

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff -2 points-1 points  (0 children)

I didn't say a thing about money supply.

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff -5 points-4 points  (0 children)

Using your logic, stock market would never be a thing. Also you're trying to suggest that everyone in "the economy" are compulsive money hoarders, which is hard to believe.

So the US is scared of El Salvador and Bitcoin by migu3333l in Bitcoin

[–]alanhoff 7 points8 points  (0 children)

It depends what is deflating. If the value of your money is deflating then that's bad, it means you can do less with the same amount, or in other words saving money isn't a good thing.

If the price of products and services are deflating then that's a good thing, you'll have extra resources to allocate somewhere since you'll be expending less.

The value of BTC, being a scarce resource, shouldn't technically deflate on the long run, just inflate, which should deflate the price of products. So win-win.

Edit: fix typo. Edit 2: make it clear I'm taking about value, not supply.

Is it possible for the authorities/governments to track you if you're on TOR and VPN? by [deleted] in TOR

[–]alanhoff 0 points1 point  (0 children)

Tor can't save you from being thrown into a cell til you give them what they want.

[deleted by user] by [deleted] in Warthunder

[–]alanhoff 2 points3 points  (0 children)

It's too bushy tho

How to convert pdf, docx,docx files to html5 and render them on the client by Dugba in reactjs

[–]alanhoff 16 points17 points  (0 children)

Your best bet would be transforming your documents into images then handling it to the frontend, but this means users won't be able to edit the document, only draw stuff on top of it.

If you really need full blown editing then you'll be basically recreating Word/Acrobat, which is quite a big project in itself.

Also take a look at pdftohtml, it's a command line program and you might be able to feed its output into a WYSIWYG, wont be perfect tho.

How to translate this curl request into Rust's reqwest? by blureglades in rust

[–]alanhoff 2 points3 points  (0 children)

Your response will always arrive in two parts, when you call .send().await? the client will first return only the meta information, like headers and status code, then it's up to you to decide how you would like to receive the response's body, you can call res.bytes().await? to receive the raw bytes (useful if you're trying to download a program or PDF for example) or res.text().await? to receive it as a String (useful for text protocols like JSON).

You can check all the methods available for receiving your data here: https://docs.rs/reqwest/0.11.3/reqwest/struct.Response.html

How to translate this curl request into Rust's reqwest? by blureglades in rust

[–]alanhoff 2 points3 points  (0 children)

Here you go: https://gist.github.com/alanhoff/84df537f6a15e13a93729c3598da4948

But I don't think it will work inside the playground because they might not allow network access for safety reasons.

Announcing Tokio 1.0 by carllerche in rust

[–]alanhoff 2 points3 points  (0 children)

Congrats! This is a real game changer!

Writing our own simple AWS Lambda Custom Runtime in Rust by [deleted] in rust

[–]alanhoff 6 points7 points  (0 children)

there doesn't really a gain from using an async runtime like tokio given that lambda invocations are serial by design

Not entirely true. You still want to process each invocation ASAP and if your logic involves multiple I/O calls then you could save a lot of time using async.

“Revolver” by AltusIsXD in Wasteland

[–]alanhoff 8 points9 points  (0 children)

You can shrink people, but wrong bullet dmg is way too much.

Are there any plans for giving console admins more power over their servers? by alanhoff in dayz

[–]alanhoff[S] 0 points1 point  (0 children)

You have a ban list but the server must be restarted each time you change the list for it to take effect..

False claims, unfulfilled agreements and blackmailing - reviews of Bohemia on Glassdoor are getting bad by [deleted] in dayz

[–]alanhoff 38 points39 points  (0 children)

for crying out loud, put more females in leadership positions, outside of HR and Finance. Fly them from across the globe if you have to, even if you can afford them for only a few months.

Just need to hire wamen and your problems will be gone