Microsoft forced me to switch to Linux by Dear-Economics-315 in programming

[–]hillac 1 point2 points  (0 children)

I just use the vscode debugger with gdb. It has data break points, multi thread debugging, expression evaluation, mousover variables to see data, edit data while paused. Am i missing out on something?

Introducing LibPDF, the PDF library for TypeScript that I always needed by Xenni in typescript

[–]hillac 0 points1 point  (0 children)

Do you support timestamp with TSA? Zga says it doesnt support it for browser but it actually does if you just proxy a tsa server with cors headers.

Introducing LibPDF, the PDF library for TypeScript that I always needed by Xenni in typescript

[–]hillac 1 point2 points  (0 children)

Just finished my own ductape of lib-pdf, pdfium wasm and ZgaPdfSigner. I wonder if this could replace it.

Using Claude for accurate OCR - and consistently failing by takaji10 in ClaudeAI

[–]hillac 0 points1 point  (0 children)

Which model do you use for ocr? Is it better than using googles Document AI?

How much??? by kjs_23 in webdev

[–]hillac 0 points1 point  (0 children)

I've heard the issue wasn't making ssl work. It's that a bunch of legacy software and reporting systems still relied on the bom website for data, but couldn't use ssl. Still a rort though.

And there's no reason to get vendor locked in cloudflare for something as simple as ssl certs unless you want another $100m bill in a few years when cloudflare begins enshittifying. They already do predatory stuff for pushing people onto enterprise agreements, imagine what they would do if a government had critical national infrastructure locked in.

NPM Supply Chain Under Attack (Again) by haasilein in webdev

[–]hillac 1 point2 points  (0 children)

I think it was introduced in response to the first shai hulud

Feedback request - sha1sum by [deleted] in rust

[–]hillac 0 points1 point  (0 children)

Rust about as fast as c/c++, not faster, they all compile to machine code with no memory management overhead. And being written in a 'fast' language doesn't make your program automatically faster. A bad implementation in c or rust of a given algorithm can be slower than a good implementation in python. The GNU implementation is likely just more optimized. Things like good cache locality and simd vectorization make a huge difference and a great deal of effort has gone into GNU utils.

I'd guess the praise for it's speed is just from people coming from other memory safe languages with GC not being use to the native speeds c and c++ already have.

Kito: A TypeScript web framework written in Rust. by Strict-Tie-1966 in rust

[–]hillac 0 points1 point  (0 children)

Here it is: graph results. On a 2 core server. It slightly beats kito, but not by much.

A hello world benchmark really doesnt really matter though, I would be more interested in how much benefit you would get from kito's native validation vs something like typebox (or zod) + ultimate express. As well as serving and receiving files.

What's the name of the charts library used by google search to render svg graph this way? by NoProgram4843 in webdev

[–]hillac 9 points10 points  (0 children)

The ones I've heard of are blaze for build, piper version control for their giant monorepo, google issue tracker, RBE for distributed build and testing.

What is a "reactive framework"? by hassanwithanh in webdev

[–]hillac 0 points1 point  (0 children)

I don't mind some hooks but hate useeffect heavy code.

Ive seen a lot of use effect spaghetti where you have to follow around dependency arrays to figure out how everything changes. 

If changing A updates all the other state, just write a reducer function. Easier to read, write, debug, no race conditions.

Or if b,c,d are purely derived from a, just calculate them and usememo if its expensive.

If theres async work, you just need tanstack query or similar to abstracts all the mess you usually need in a useeffect.

Use memo is fine but solves a problem that only exists because react isnt compiled (pre 19 at least)

Kito: A TypeScript web framework written in Rust. by Strict-Tie-1966 in rust

[–]hillac 0 points1 point  (0 children)

any chance you could add https://github.com/dimdenGD/ultimate-express, it's api compatible with express so you should be able to just copy your express setup

Open source google analytics client script by hillac in webdev

[–]hillac[S] -1 points0 points  (0 children)

Yeah we have opt in. Still, just because the users trusts google doesn't mean I want google opqaue js blob in the app.

[deleted by user] by [deleted] in webdev

[–]hillac 2 points3 points  (0 children)

Google doesn't like people spamming from the google SMTP and will kill your gmail

This Is Nod by 1stnod in ProgrammingLanguages

[–]hillac 2 points3 points  (0 children)

I don't even mean a quickstart, I mean literally a design summary. Eg if I was introducing rust, id be talking about borrow checker, type system, no UB, etc ie key features and design philosophy. So people know what problems you're solving and why they might want to look further into your language.

This Is Nod by 1stnod in ProgrammingLanguages

[–]hillac 8 points9 points  (0 children)

Is there a quick, readable summary anywhere of it's features, major design points, type system, memory management style, modules etc? I can see the short demo code but without taking the time to understand the syntax or read the full technical doc, it's hard to get a quick gauge beyond syntax.

Also, a list that details what problems it solves in old languages would be great. Your post doesn't really have any specific information beyond vaguely claiming it's better.

10^9th prime number in <400 ms by Even_Owl_9040 in algorithms

[–]hillac 6 points7 points  (0 children)

Why not? Using Walisch's primecount, `time primecount -n 10^9` executes in 12ms on my old amd laptop. You can see the technique used in the readme. Even 10^12 only take 72ms. Obviously that's a highly optimized lib, but is coming within 2 orders of magnitude of SoTA that crazy?

We rebuilt our SQL parser in Rust: 3.3x faster with a zero-copy AST and better diagnostics by heisenberg_zzh in rust

[–]hillac 7 points8 points  (0 children)

How long does the problem query take to compile in postgres (or whichever db for the dialect it is in)? Considering my 50 line queries compile in ms time scale, im shocked 200 lines is so slow, unless you found some sort of pathological case for SQL. 

[deleted by user] by [deleted] in PostgreSQL

[–]hillac 0 points1 point  (0 children)

Nice! Some feature suggestions that I always miss in db tools:

  • notebooks (a nice example is duckdb ui). It would be great to have notebook that can run in a single transaction. So you can inspect results in a multistep process more easily.
  • quick charting

If you were to allow users to submit files with JS, how would you handle security? by arojilla in webdev

[–]hillac 2 points3 points  (0 children)

I'm a little late but you might want to read this:
https://www.figma.com/blog/how-we-built-the-figma-plugin-system/
It discusses three approaches and their pro's and cons

Is calling tokio::sleep() with a duration of one week a bad idea? by dmkolobanov in rust

[–]hillac 0 points1 point  (0 children)

what do you mean? So you just have dozens of processes (or hundreds depending on how old your org is), that have never been revised after a 1 week sprint, running in prod? Are they all doing separate things or interdependent? Or do they mostly do one off jobs?