Better HN
topnewbestaskshowjobs
Log inSign up

jpcapdevila

84 karma · joined Apr 27, 2015 (11y ago) · 71 submissions

Passionate software engineer, I love all things code, specially all the flavors of javascript.

Interested in early stage, fast moving startups.

Born in Mexico City. Currently living in Salt lake city.

Submissions

comment 4y ago · link · parent

Hey Josh,

I'm building a serverless firebase alternative that uses SQLite. If CF gives me access I will totally support D1 & workers.

Check it out: javascriptdb.com

comment 4y ago · link · parent

I'm building an open source firebase alternative using sqlite. I'll be reaching out, I was thinking to build the distribution & durability part myself, but I would rather use D1!

I guess it would count as a client focused ORM :)

I'll be reaching out from jp@javascriptdb.com

Great addition, congrats!

comment 4y ago · link · parent

I think the most successful attempt would be Realm.

https://realm.io/

comment 4y ago · link · parent

Are you guys using litestream or a similar approach? E.g storing WAL frames in a durable object.

comment 4y ago · link · parent

Could you elaborate on the features that would make MySQL a safer choice?

comment 4y ago · link · parent

It only PUTs if there's writes.

comment 4y ago · link · parent

I love Datagrip by jetbrains.

comment 4y ago · link · parent

https://fly.io It let's you run containers on the edge (close to your users)

39.

Svelte Summit Spring 2022 Is Live(youtube.com ↗)

2 points · by jpcapdevila · 4y ago · discuss

comment 4y ago · link · parent

The best way to do it is from Google BigQuery.

There's a dataset containing everything: bigquery-public-data.hacker_news.full

You can write SQL and is super fast. Sample:

SELECT * FROM bigquery-public-data.hacker_news.full LIMIT 1

comment 4y ago · link · parent

Haha, most code evolve into crap. But crap can solve real user & business needs.

comment 4y ago · link · parent

I was having this conversation two days ago. I believe free will is an illusion, everything is ruled by causality beyond our comprehension.

But even as I say write it, in a couple of minutes my brain will jump back into thinking I'm in control. It's very strange.

comment 4y ago · link · parent

Singapore!

I spent a week there 7 years ago and I loved it.

The city was cool and modern, yet clean and civilized.

I was born in Mexico city, currently living in salt lake city Utah. I think living in Asia for a while would help me grow and expand my perception of the world.

comment 4y ago · link · parent

For me full stack means someone that can deliver a complete product (ui, server side business logic, database, deployment) on its own.

comment 4y ago · link · parent

Makes sense and I agree. For simple things I still do vanilla js. As soon as I need to re-use components or shared state between pages I go with sveltekit.

comment 4y ago · link · parent

Very nice trip down memory lane! My experience was very similar.

For me the next step, the fifth era if you will, is javascript that manages the persisted distributed state for you without any backend or db specific API.

You push something into an array and it is magically there for another user in the other side of the world.

I'm working on something like that: https://javascriptdb.com

comment 4y ago · link · parent

Maybe you will like https://svelte.dev/, I find it more close to good old html. For example, a component that is not interactive is basically an html file with an <style> tag and some html markup.

48.

Show HN: I built a simple realtime poker planning tool(github.com ↗)

2 points · by jpcapdevila · 4y ago · discuss

comment 4y ago · link · parent

Thanks Ben. I appreciate the feedback, I will add vanilla samples but also samples for each framework, including SSR.

The DB access works fine on both places, I use it from svelte kit load function without problems. I haven't played with authenticated SSR, I'll make sure to include that in the samples.

comment 4y ago · link · parent

Both firebase and appwrite are amazing platforms. I use firebase extensively at work, it works great and it scales.

The main problem with firebase is that you can't self host it, this means you can't easily test or replicate environments.

The emulators are limited: indexes are not enforced, copying the production database (no more than 50k documents) to my macbook pro crashes the emulator.

Also the DSL used to define security rules is not flexible enough. I've seen developers skip defining rules because they don't get it to work.

Appwrite is great and you can self host it, but it introduces concepts/APIs to query data and secure it that you have to learn. They also try to solve the problem for all platforms and languages.

JSDB tries to extremely simplify things and just use plain javascript for everything.

You should use JSDB if you love javascript.

That being said, firebase & appwrite are both production ready and JSDB is not there (yet!!)

comment 4y ago · link · parent

Sure. You can host it yourself for commercial purposes and you don't have to open source anything in your product, just like you can with MIT. The only difference is that if you want to create a service that offers JSDB as a service (compete with javascriptdb.com) you have to open source it. The idea is to make big cloud companies contribute back.

comment 4y ago · link · parent

Thank you. Out of curiosity, what language do you usually use to develop your backend?

comment 4y ago · link · parent

Agreed, there are fun technical challenges to tackle. I think the project will eventually take a compiler approach.

At least that's the plan to enable indexes. Parse callback functions passed to .filter and convert that into native DB queries.

comment 4y ago · link · parent

Thanks for the feedback. I'll add the supported engines to the package.json

About ES modules, I decided to start with esm because it looks like everything is moving in that direction. That being said I will support both cjs and esm soon.

55.

Show HN: JavaScript as a Database – Serverless Platform(javascriptdb.com ↗)

20 points · by jpcapdevila · 4y ago · 14 comments

comment 4y ago · link · parent

@ben Same as the other commenter, I'm currently using it without problems. I configured max instances to 1 and that seems to be working fine. What am I missing?

comment 4y ago · link · parent

Super excited about this one. We've been struggling with deployment times and timeouts for long running tasks.

The function versioning seems interesting for rollouts.

comment 4y ago · link · parent

It's for background running tasks. In my company we have functions that process tons of medical records. We call this HTTP function from a cloud task queue, the previous 9 min limit was annoying.

This will make our team happy.

comment 4y ago · link · parent

When I go to any page under cloud.google.com I get "Service Unavailable". This is from Utah, US.

Edit: I only get this error on docs etc, console works fine.

123