HN user

saintfiends

196 karma
Posts15
Comments117
View on HN

Meilisearch is really good for a corpus that rarely changes from my experience so far. If the documents frequently change and you have a need to have those changes available in search results fairly quickly it ends up with pending tasks for hours.

I don't have a good solution for this use-case other than maybe just the good old RDBMS. I'm open for suggestions or anyway to tweak Meilisearch for documents that gets updated every few seconds. We have about 7 million documents that's about 5kb each. What kind of instance do I need to handle this.

Loki OSS is just a sales pitch for their managed service. It doesn't work well without dedicating significant time tweaking and configuring it. Documentation is confusing at best if you want to do anything serious. You have to also be ready to handle support calls if you open it up for others to use, because it WILL have issues fairly regularly if you have a good volume of logs and query range is more than a day or two.

Unless you have the bank to go with their managed service, don't bother.

EdgeDB 3.0 3 years ago

Hey Yury, congratulations on the new release!

From what I'm seeing, the upgrade path is essentially dump and restore. This was the case for moving from EdgeDB v1 to v2 as well. Since EdgeDB is a fast moving target this creates a lot of friction for older databases to upgrade.

Is there plans for replication support or a more robust upgrade path?

I'm a long term vim user and now exclusively a neovim user. I adopted this from the first time I came across this. It's pretty neat, it does break from time to time but there's always a GitHub issue describing a workaround. It's pretty stable these days and breaks far less comparatively.

I've been using chezmoi too and this is the only feature I miss. It'd be interesting to know what solutions folks are using. Chezmoi has some discussions around it, mostly recommending to use run scripts.

Interesting idea. I'm not sure how scalable this would be given the fragile nature of the tools.

I want to believe with enough indications of the monitoring itself (Is the screen being refreshed? Is network connected ? When was it last checked?) that this is a viable option and that would unlock a lot of possibilities.

But I can't shake off the feeling of uneasiness (What if it's not working and we don't know it's not working)

PS: I'm not bashing on what was done, just the general idea.

ProtonVPN 9 years ago

How does this compare to TunnelBear [1]?

- TunnelBear is a bit more expensive (4.99$/mo, paid annually vs 4$/mo).

- TunnelBear supports up to 5 connections per account vs 2.

I use TunnelBear regularly for my browser and phone. Both works great.

My subscription is going to expire soon and I'll be open to try other VPN providers, not that there is anything wrong with TunnelBear. Any recommendations?

This site [2] has feature comparisons but experience using VPN services is another story.

[1] https://www.tunnelbear.com/ [2] https://thatoneprivacysite.net/vpn-section/

Interesting project.

What's all this voodoo inside Makefile, I would love more comments in there. I think that would be the first step for anyone wanting to contribute, to understand the Makefile.

    @echo "[go] compiling go sources into a standalone .o file"
    @GOARCH=$(GOARCH) GOOS=$(GOOS) go build -n 2>&1 | sed \
	   -e "1s|^|set -e\n|" \
	   -e "1s|^|export GOOS=$(GOOS)\n|" \
	   -e "1s|^|export GOARCH=$(GOARCH)\n|" \
	   -e "1s|^|WORK='$(BUILD_ABS_DIR)'\n|" \
	   -e "1s|^|alias pack='go tool pack'\n|" \
	   -e "/^mv/d" \
	   -e "s|-extld|-tmpdir='$(BUILD_ABS_DIR)' -linkmode=external -extldflags='-nostartfiles -nodefaultlibs -nostdlib -r' -extld|g" \
	    | sh 2>&1 | sed -e "s/^/  | /g"
edit I think I understand what's happening here, funny how writing it down helps one understand. It's just building up a build script with sed and executing it. The thing was I didn't know sed could do that. TIL

My confusion was why the compiler didn't catch this, it is suppose to spot this sort of thing right?

Now that I think about it, maybe it has to do with `unsafe` block so the compiler doesn't check it.

My next question would be why does it need `unsafe`?

Angular vs. React 9 years ago

Vue being just behind react, it is a good choice however it lacks a list of best scaling practices, resulting in a lot of spaghetti code.

Is there any example of this? specially the spaghetti code part.

I'm new to rust. Can someone explain what is the issue with following code?

    pub fn as_mut_slice(&self) -> &mut [T] {
        unsafe {
            slice::from_raw_parts_mut(self.ptr as *mut T, self.len())
        }
    }