Better HN
topnewbestaskshowjobs
Log inSign up

ledgerdev

366 karma · joined Jul 21, 2016 (10y ago) · 239 submissions

Submissions

comment 4y ago · link · parent

We have been using a token vendor for PCI level 1 compliance and it's been most excellent.

I can't tell you how many times over the years I've seen tens of millions of rows of sensitive data(e.g. ssn) sitting in databases unencrypted. Software devs as an industry really needs to take this more seriously, but often businesses simply will not allocate the funds to do this right because of minimal risks to the corporation. At least with PCI the companies are forced to take card data security seriously.. but for instance nacha data, not nearly as much.

Absolutely the way to handle sensitive data in every app, so much so that I'm working on an open source version.

comment 4y ago · link · parent

> It doesn't address all the stuff that container orchestration tools address such as lifecycle management, update management, artifact management, autoscaling, networking, management access control, logging & metrics, etc.

Absolutely agree, it's just a core technology, which enables new model of operation, on which all that is necessary to run. Right now there is almost nothing.

> If you want to start faster than containers, you already can — by not using containers.

Only if don't care about security/isolation. WASM is strongly sandboxed. It's appropriate for multi-tenant systems, where containers/jvm/etc have to be run inside of virtual machines(e.g. firecracker) to get acceptable isolation.

> I suppose that's too slow for serverless cold start

Yep, half a second is way too slow for new instance per request. I think wasm startup time around 35 μs for lucet.

comment 4y ago · link · parent

containers != native exe. WASM can start faster than containers, not exe.

comment 4y ago · link · parent

Of course containers will be around probably forever, just as we still have mainframes. Note that current serverless and container platforms start and manage long running instances and occasionally incur cold starts.

WASM has near instant startup, making a cold start for each request feasible. I think this could be a key property/advantage that makes it preferable and more economically efficient in the long run.

WASM I think has a stronger sandbox as well. Containers in a multi-tenant environment need to run inside a virtual machine. WASM can be run in multi-tenant without the need to isolate each tenant in a virtual machine, again making it more efficient in long run.

edit: also recalled a relevant tweet from creator of docker https://twitter.com/solomonstre/status/1111004913222324225

comment 4y ago · link · parent

Yes, but it will be large, ~40mb zipped. Net6 release broke trimming (tree shaking) with entity framework at least which caused an app of mine to balloon quite a bit.

Native AOT is on the roadmap for net7 which is good but very minimal support. For instance asp.net mvc is a non-goal (https://github.com/dotnet/runtime/issues/61231), so probably another 3 or 4 years before it's well supported.

comment 4y ago · link · parent

https://www.manning.com/books/data-oriented-programming

comment 4y ago · link · parent

Awesome answer, thanks! Foundation seems like magic almost, from just choosing very smart trade offs and co-ordination.

comment 4y ago · link · parent

I was just looking into this, and found this really interesting post about foundationdb and sql.

https://www.voltactivedata.com/blog/2015/04/foundationdbs-le...

Also this, excellent comparison of distributed database consistency methods, mentions cockroach, but not foundation. http://dbmsmusings.blogspot.com/2018/09/newsql-database-syst...

This brings up the question, what method/protocol does foundation use for distributed consistency?

comment 4y ago · link · parent

listen/notify

edit: https://github.com/cockroachdb/cockroach/issues/41522

comment 4y ago · link · parent

> yet a another example of how C# is becoming a dominant systems language

Perhaps a bit of a stretch. I am currently choose golang for a more systems like project because of startup time and gc pauses in c#/dotnet. Definitely nice to see nativeaot which should address the startup time issues.

comment 4y ago · link · parent

Ok, so turns out default chrome/firefox on windows/android were not issuing the history refresh request on back button click. Turns out you need to add some additional config to make that happen. It's now working, and it's excellent.

Set htmx to not cache prior pages by setting `htmx.config.historyCacheSize = 0` in window.onload.

Also set the http caching header `cache-control: no-cache`

comment 4y ago · link · parent

Data Oriented Programming. In short, don't entangle your code with data, and the data should immutable.

https://blog.klipse.tech/databook/2020/09/25/data-book-chap0...

comment 4y ago · link · parent

> 2) If there's a form input at each step, the server needs to store that info and be aware that the user has an incomplete checkout. Now the user is at step=2 and presses the back button, or clicks on the step=1 link. In that case, the server should know the information stored in the point no. 2 above, and return an HTML form with the data pre-filled based on the last state.

The problem is that when you press back button in the browser, it doesn't make another request to the server. It reloads the page from browser memory. A link back can be made to work, but that's not what I was speaking to.

I tested the most trivial case, when you return a response, and push navigate to next step, then press browser back button, form state is not retained. Both chrome and firefox do not restore the form state on navigation back after a url push navigation.

I don't think that without some client side JS that saves/reloads prior form state this is a solvable problem because of browser behavior. Either that, or perhaps use different divs for each step then have js hide/show them which is what I will try next but involves writing js to do so.

EDIT: tried multiple divs on same page, same behavior so that will not work.

It's pretty clear that htmx hasn't considered back button much at all, it also clobbers the page titles in history as well (https://github.com/bigskysoftware/htmx/issues/746), but that's a fixable problem.

comment 4y ago · link · parent

So, I have only been working in htmx for about a week on a multi step checkout app, and while it's been mostly awesome, I think I ran into the Achilles heel of htmx, form state and the back button.

In short of you enter data into a form then htmx push navigate away, when you click the browser back button you get the dom as it was originally delivered from the server, without any data the user might have entered into text boxes. This is a show stopper problem and been working on work arounds, not sure any is good. Basically we have resorted to plain old full page reloads with client side redirect to resolve this.

comment 4y ago · link · parent

How about IPS vs VA panels for text rendering?

comment 4y ago · link · parent

Nothing totally new, but it is an attribute based extension of html that allows any element to generate http get/post and handle/target a hypermedia response back into the dom... without the need (but still have the option) to write javascript if you want. You end up writing almost zero js and it's wonderful.

comment 4y ago · link · parent

There is absolutely nothing proprietary about the format. It's just plain html and vanillajs works fine if that's what you'd like to use. Hyperscript is no different than any other open source compile to js lang.

comment 4y ago · link · parent

This exactly. I just started a new project with htmx this past week, and it absolutely amazing. It brings the magic of the web back we first experienced moving away from 90's windows programs. I'm a firm believer that react/angular are grossly mis-used for information based apps and websites, they should really only be used for rich client apps like chat, music players, image editors, offline, etc.

comment 4y ago · link · parent

Does this have, or are there any plans for a change-feed? Has anyone used this as an event sourcing db?

comment 4y ago · link · parent

My preferred method is to tokenize sensitive data before storing in the immutable logs/database.

comment 4y ago · link · parent

I've always been curious, what kind of latency do you see between an insert, and when the notify goes out over the channel?

comment 4y ago · link · parent

https://github.com/cursive-ide/cursive/issues/391#issuecomme...

comment 5y ago · link · parent

> Completely agree. I am so disheartened with how co-workers don't seem to take any issue with the aws service suspensions. They are just like oh well, it won't ever happen to us and they must have deserved it. New rule for myself when designing any system now is no cloud vendor lock in allowed.

comment 5y ago · link · parent

What's the status of grpc both as client and server? I seem to recall reading somewhere that some features(trailing headers?) needed to call grpc as client were out of the fetch spec and thus would to be implemented. It's also not clear from this issue either. https://github.com/denoland/deno/issues/3326

comment 5y ago · link · parent

Long term a free and open society needs a distributed and un-censorable twitter like communication protocol/medium.

Any efforts to build something like this out there?

comment 5y ago · link · parent

The data consistency seems most attractive point. I'm wondering where precisely fauna clusters are located, so I could run my lambda functions in same location. What sort of latency do we see when connecting from various azure/aws datacenters? Are they in most aws data centers?

comment 6y ago · link · parent

> 2) Rust's ecosystem makes it easy to find and integrate solutions not offered by the standard API

This made me think back to something Rich Hickey said in his "Are we there yet?" talk. In short rust has memory management, and so can better function as a library language, similar to how Java did back in the 90's. Rich's quote below.

>> And it is a big problem. I think the lack of garbage collection really impeded C++ in one of its design objectives, which is: it was supposed to be a library language. All the original design stuff and any time you heard Stroustrup talk about it, it is like, "C++ is going to be a library language". But it only ever ended up being a parochial library language. Every shop had a library, but there were not a library, and still are not a lot of libraries, that go between places, because of this problem.

https://github.com/matthiasn/talk-transcripts/blob/ccc4a0172...

comment 6y ago · link · parent

They have a history many years back, of not being fully truthful with customers about hacking incidents. Do a google search.

relevant: https://news.ycombinator.com/item?id=5667027

comment 6y ago · link · parent

Fly.io is more exciting for me because it's edge app servers and it terminates web sockets. I've been envisioning a live-view like framework, or heck even a regular old rest api, where the client connects to the fly.io server with a single request then the app server makes a request to N number of back end processing servers using an efficient protocol like grpc.
1
45678