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

I don't like how the headline reads almost as "Claude will now spy for the US".

I think it's a good thing that the government employees will be able to use LLMs (e.g. to improve language understanding) and feed it to software that is compliant with FedRamp/DoD IL. I can only imagine that there is more work to do than there is manpower and LLMs open up more opportunities to improve efficiency.

Press release from Anthropic on the matter: https://www.anthropic.com/news/claude-gov-models-for-u-s-nat...


Poland has kurnik.pl (meaning “chicken coop”) with a version of scrabble called “Literaki”. It’s been around for years.


It actually predates ISC, dating back to 2001. These days you can play actual Scrabble on Kurnik, too!

ISC also supports Polish (with OSPS).


Trino is pretty good (open source presto).

https://trino.io/


Do you know if "I can't believe it's not butter" contains butter?


That is a different question. If something is labeled "butter"it is probably butter. If it is labeled "not butter" it definitely should have a label that says "might contain butter. Now I understand the labeling and allergy concerns. Like does "almond milk" contain milk? I didn't know but it probably contains almonds or almond extract.


So cookie butter is a butter that contains milk?


Do you mean cookie batter?


I do not, but cookie batter should also be labelled if it has dairy/butter.


Sorry, what the heck is "cookie butter" (native English speaker here, in case it matters...)?


Ha, why would a non-native English speaker ever be shopping in our glorious American stores? /s

Cookie butter is sweet spread primarily made of ground up cookies and is from France/Belgium/the Netherlands.


That's pretty much irrelevant to whether you know if butter contains butter.


Is “almond butter” butter? What about “clarified butter”?


First of all, this isn't either of those. It's just plain old butter, labelled as such.

Secondly, people in general also know what those are.


And their remote key.


Sadly I accidentally hit the alarm button several times a week.


Now another group of researchers have the opportunity to apply for a grant and propose new research on N=10


Why bother when N=1 is sufficient to solve P=NP?


What about: b7k


>Because of this huge codebase size, I wasn't able to get VS Code's C++ extension to work very well with the project. Features like go-to definition (which I usually rely on heavily when navigating codebases) and find references didn't work well or at all, and one of my CPU cores would stay stuck at 100% permanently while the project was open.

Chromium Code Search [1] tool is very helpful with that and I believe there are some extensions that integrate with it.

1: https://source.chromium.org/chromium/chromium/src


It's also possible to get go-to-definition etc working in VSCode locally. You need to switch from Microsoft's C++ extension to the clangd extension. Clangd scales better and is more accurate for projects using clang like Chromium. Instructions here: https://chromium.googlesource.com/chromium/src.git/+/HEAD/do...

The Chromium code search site is still very useful too.


I've been working on an extension https://github.com/phil294/search-plus-plus-vscode-extension for instant search results in gigantic repos like this one because it's a recurring pattern that bothers me. And eventually I'd like it to use its index to provide full go-to, autocomplete etc. on a pure plain text basis, because why not? I don't get the obsession with full-fledged language integration when plain text-based search results can get you all the way 9 out of 10 times, whereas a typical language plugin will constantly suffer from brokenness, performance problems and general annoyance, unless maybe you're working in pure JS/TS. And while LSP is great, you still have to fight this battle separately for every language you use. And regular "search" features are dreadful too.

It's one of these things that Jetbrains products are vastly superior in. It's fast, always works, falls back to text matching and also natively allows multiple languages per source file.


Sounds really interesting, and useful for most developers. I think the issue is probably more what people have read about edge cases, than what it's actually like to use an extension like you are building. People tend to worry that they will hit the edge case and not realize it, so completely avoid anything that might give them faster results in the name of 100% accuracy that they will probably never hit. In a typed language, I would think that it would be extremely rare to search and make the type of changes that would be missed in that edge case, and the code still compiles without issue. Maybe I just haven't worked on large enough codebases, or ones that are full of "magic" where such a thing would create such an issue.

Regardless, I think it's impressive that you've taken on this task and are sharing it with the VSCode community, and appreciate you sharing.


For Visual Studio on Windows Google provides a search extension that indexes Chromium locally and gives instant results for search. I was always puzzled why such functionality is not available in most IDE by default.


Is it something similar to ctags? https://github.com/universal-ctags/ctags


BTW there also exists the same code search tool for Android (AOSP): https://cs.android.com

I use it all the time as an Android app developer. Its introduction was a big deal, because before that, it was common among Android developers to pull AOSP sources (all the many gigabytes of them) to one's local machine and just grep around.


Oh yeah, Code Search is good.

it is not as good as the search built into Azure Devops [1] however. You don't know power search until you've used a search tool built on the backs of the devs of Windows. Being able to say "Uhhhh I know it was a macro called DeBeanIt2k near a comment with "HACK" in it" gets turned into "comment:HACK macro:DeBeanIt2k" and you get answers back is super nice. There's also an API for it.

1: https://learn.microsoft.com/en-us/azure/devops/project/searc...


First, thank you for sharing this helpful link, but LOL at needing to use a third party server to search plain text data that could fit in RAM (at least on this developer's machine). JavaScript- and JSON-based developer tooling is a terrible idea.


I'm sure it can do a plaintext search just fine. What the author is talking about is language-aware features like "go to definition". Holding all of a whole web browser's C++ parsing tree in memory is a lot bigger ask than just its plain text.


You're assuming that the only way to a definition of an identifier is 1) parse the entire source tree 2) keep the entire source tree in memory 3) use that in-memory source tree to go to definition. If you accept those constraints and then implement in a slow language, then yes, it won't work.


You’re rather underestimating the vast expanse that is the Chromium codebase, I think. That said, distributing tags files was a common thing once, and a dedicated symbol package you could just download and feed into your language server (instead of being constantly tethered to a symbol server) could make for a nice affordance today.


So this actually exists, as it turns out. You can run clangd-indexer to produce a static index and then load it with clangd -index-file. The caveat is that

> [r]unning clangd-indexer is expensive and produced index is not incremental.


It's not searching plaintext though.

VSCode itself can deal with big text data being thrown at it, this will be some of the language server stuff


I'm glad VSCode handles large text files better for you than it does for me. Editing anything large in VSCode makes it slow to a crawl on my machines.


Interesting.

The only time I had problems was very big JSONs with everything on one line, but prettifying fixed that. (Or was it XML? I forgot. One of those.)


I tried to launch the demo, it's stuck in "Loading Manaflow demo...".

Console has errors:

> failed to load resource: the server responded with a status of 422 () clerk.browser.js:2 Uncaught (in promise) Error > at s._fetch (clerk.browser.js:2:48584) > at async X._baseMutate (clerk.browser.js:2:49256) ingest/static/recorder.jsv=1.139.3:1

> Failed to load resource: the server responded with a status of 404


What is your pitch to existing Prismic.io customers? I didn't see Prismic in "Compare to..." section.


I haven't had a chance to try out Prismic recently, but I encourage you to try both and make up your own mind.


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

Search: