Better HN
topnewbestaskshowjobs
Log inSign up

nicce

6,159 karma · joined Feb 27, 2021 (5y ago) · 3,161 submissions

Submissions

comment 1y ago · link · parent

> Yes writing the definitions by hand can time consuming and error-prone

With the proper environment, this isn't that time consuming or error-prone anymore, based on my recent experiments. When I initially started exploring with the library, it was a bit difficult at first (mostly because back then there was no reference documentation and you had to rely on tests), but after some time API gets easy to understand. Actual type definitions remain very small because of the derive macros.

Nowadays LLMs are pretty good at handling ASN.1 definitions. If you provide the context correctly, by giving e.g. the reference from the rasn's README, maybe even some type definitions from the library itself, and just give the ASN.1 schemas, LLMs can generate the bindings very accurately. The workflow switches from being the manual writer to be just the reviewer. Compiler is also already good at generating the basic definitions on most cases.

I really like the idea that then standard can be published as a crate, and nobody needs to ever touch for the same standard again, unless there is a bug or standard gets an update. Crates can be then used with different open-source projects with the same types. What I known about commercial ASN.1 usage, different companies buy these products to compile the same standards over and over again.

I bet that there are no many companies that define their internal APIs with ASN.1 and buys commercial tool just to support ASN.1 usage in their own business, without any international standards included.

comment 1y ago · link · parent

UPER is extremely compact encoding format. It still makes sense to use UPER, because after all, it is an international standard and telecommunication protocols itself are supposed to add as little overhead on top of actual payload as possible.

For example, if you have ASN.1 UTF-8 string that is constrained to 52 specific characters - UPER encoding can present every character with 6 bits (not bytes).

In modern world you can apply zlib on top of UPER encoding or internal payload, however, depending on the use case.

comment 1y ago · link · parent

There are many tools that can handle UPER up to certain level (some rare ASN.1 types might not be supported). I think the main issue is not in the codec, rather the lack of compilers that can create correct language-level representation of the ASN.1 definitions. 3GPP specifications are enormous and you don't want to create them by hand. ASN.1 has some very difficult notations, e.g. inner subtype constraints and information object classes. Subtype constraints may affect for the encoding output in UPER and if you are not representing them correctly overall, then you are not compatible.

comment 1y ago · link · parent

There is also rasn library for Rust that now supports most of the codecs (BER/CER/DER/PER/APER/OER/COER/JER/XER).

Disclaimer: I have contributed a lot recently. OER codec (modern flair of ASN.1) is very optimized (almost as much as it can be with safe Rust and without CPU specific stuff). I am still working with benchmarking results, which I plan to share in close future. But it starts to be the fastest there is in open-source world. It is also faster than Google's Protobuf libraries or any Protobuf library in Rust. (naive comparison, no reflection support). Hopefully other codecs could be optimized too.

[1] https://github.com/librasn/rasn

comment 1y ago · link · parent

Basically any commercial ASN.1 compiler prevents usage of the output in any open-source project. There is that.

comment 1y ago · link · parent

Sometimes old things don’t need a rewrite just for the sake of language-based advertising.

comment 1y ago · link · parent

For me it is like 0.5s. Interesting.

comment 1y ago · link · parent

In the context of Rust it is not about "bloat" indeed. The compiler includes only used bits and nothing more. However, there are other problems, like the software supply chain security. More dependencies you have, more projects you have to track. Was there a vulnerability that affects me? Is project unmaintained and some ill factor took it over?

In C this was actually a less problem since you had to copy-paste the shared code into your program and at some level you were manually reviewing it all the time.

Also in Rust people tend to write very small libraries and that increases the number of dependencies. However, many still not follow SemVer et. al and packages tend to be unstable too. On top of additional security issues. They maybe be useful for a short time but in many cases you might need to think the lifetime of your application up to 10 years.

comment 1y ago · link · parent

To generate safer C?

comment 1y ago · link · parent

’Extern c’ still uses Rust. You want to skip Rust and call C from other languages directly.

comment 1y ago · link · parent

Payment systems take huge fees. It is always good if they get back to the country and not elsewhere. Digital paying is something fundamental. Like electricity.

comment 1y ago · link · parent

It also can be Go issue. Garbage collector did not have time to free memory.

comment 1y ago · link · parent

There is still more trade with Russia than many countries in the list. Even Syria and Iran got tariffs.

comment 1y ago · link · parent

Actual overhead when the site is used in reality? How much ovearhead are those 100 different buttons creating? What is the performance of state managing? What is the rendering performance in complex sites? How much size overhead are modular files adding? Is .jsx contributing more than raw HTML for page size? The library runtime bundle size is mostly meaningless, unless you want to provide static website with just text. And then you should not use any of these frameworks.

comment 1y ago · link · parent

Yeah, but my point is that you download the runtime and core of React/Tailwind just once for the whole web page and those should be removed from the test, or at least there should be comparison which includes the both cases.

You only need couple images on your webpage and that runtime size becomes soon irrelevant.

So the question is, that how much overhead are React/Tailwind CSS adding beyond that initial runtime size? If I have 100 different buttons, is it suddenly 10 000 kilobytes? I think it is not. This is the most fundamental issue on all the modern web benchmarking results. They benchmark sites that are no reflecting reality in any sense.

These frameworks are designed for content-heavy websites and the performance means completely different thing. If every button adds so much overhead, of course that would be a big deal. But I think they are not adding that much overhead.

comment 1y ago · link · parent

> Yes, that, too. But you are forgetting that React makes all that opimizing work necessary in the first place.

Isn't the runtime state optimization the only responsibility of React. It's a library. The rest goes for Vite, Deno et al.

comment 1y ago · link · parent

To be honest, I am very confused with this benchmark. It is misleading.

What is the actually size of the production build portion only for that button part? Because I think that the ShadCN button source code is not equal in size for the button that client downloads in production environment. Especially if you have SSR.

comment 1y ago · link · parent

Depends on if the free trial is misused here somehow. I don’t know if it is.

comment 1y ago · link · parent

> 1. The beneficial effect of fluoride occurs only when fluoride is applied externally, in contact with the tooth enamel

I think you are kinda misusing science/not science arguments.

This is indeed the scientific reason why there is flouride in the water. It is also scientific reason why some countries removed it.

In some countries people take care of their teeth on average and in other countries not so much. So there is science for why fluoridation happens. You can read many articles about the fluoride benefits for teeth and what is the impact of teeth for overall health.

comment 1y ago · link · parent

That is certainly true. But that is not how these work 99% of the time. This post was originated by "search".

comment 1y ago · link · parent

But how did you find those sites that had the robot.txt to begin with? LLM must somehow find the existence of those pages and store that information before they can crawl them further or mark as acceptable source.

comment 1y ago · link · parent

It must form the search index somehow. That is prior the human action. Simply it would not find the page at all if it respects.

comment 1y ago · link · parent

I think AI is currently much poorer for this use case, if you want to generalize it. There is less assembly code training data available where existing bad coding patterns are matched to actual bug descriptions. Assembly is more verbose so they also take more context width from LLMs. False positive are the biggest pain in this area. With LLMs it is also surprisingly difficult to test the existence of vulnerability in general - often you give a hint about the possible issue with the prompt itself. If you do it in large scale, false positives are everywhere.

comment 1y ago · link · parent

The stated problem was about indexing, accessing content and advertising in that context.

> I solved user problems for myself. Most of my web projects use client side processing. I moved to github pages. So clients can use my projects with no down time. Pages use SQLite as source of data. First browser downloads the SQLite model, then it uses it to display data on client side.

> Example 'search' project: https://rumca-js.github.io/search

That is not really solution. Since typical indexing still works for masses, your approach is currently unique. But in the end, bots will be capable of reading on web page context if human is capable on reading them. And we get back to the original problem where we try to detect bots from humans. It's the only way.

comment 1y ago · link · parent

> The big takeaway here is that Google's (and advertisement in general) dominance over the web is going away.

AI companies with best anti-captcha mechanics will win and will inject ads to LLM output in more sophisticated way.

comment 1y ago · link · parent

I think the comment was way shorter than it currently is when I replied. It is sometimes difficult to say what is meant with "validation". Many also use it to mean "functional testing", for example, which is incorrect.

comment 1y ago · link · parent

He is saying that original spec can be incorrect.

comment 1y ago · link · parent

Rental terms were 1000 page book.
1
424344
106