Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Panzerschrek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
91.
▲
by
Panzerschrek
4mo ago
I am pretty skeptical about the whole idea about adding such exceptions to the single mutable reference rule. It may be safe to share references to simple structs in terms of raw bytes access, but as long as some non-trivial invariants ar
92.
▲
by
Panzerschrek
4mo ago
> Because of this, Ante code can safely have multiple mutable borrow references to the same struct at the same time. I doubt it can work in multithreaded code. Allowing sharing mutable references (even to simple structs) means race condi
93.
▲
by
Panzerschrek
4mo ago
> every app is a small HTTP server This adds unnecessary overhead for communication. using web and web-like approaches on desktop system is a terrible idea.
94.
▲
by
Panzerschrek
4mo ago
> writing the same algorithm in multiple places with This seems for me to be reasonable. Like for a video game with server written in Go/C++/Rust and client written in C#/Javascript, where the same calculations should be d
95.
▲
by
Panzerschrek
4mo ago
> implementing reusable components (libraries) for C, C++, C#, D, Java, JavaScript, Python, Swift, TypeScript and OpenCL C, all from single codebase Why is this needed? I can't imagine that. I am sure writing code in fusion will p
96.
▲
by
Panzerschrek
4mo ago
A whole programming language in 3 weeks? Is it LLM-generated?
97.
▲
by
Panzerschrek
4mo ago
All Unix-like systems have made a lot of mistakes. There is a chance to fix them. Here is the list of some of possible improvements: Pointer + size strings in APIs (not null-terminated strings). Asynchronous APIs as default choice. Proper p
98.
▲
by
Panzerschrek
4mo ago
It would be nice to know how fast it is in comparison to a similar voxel engine written in a language like C++ or Rust.
99.
▲
by
Panzerschrek
4mo ago
> Arabic was the premier language for philosophy, science But this was not for ordinary people (peasants) or even accountants, where practicality matters. > Your brain is not powerful enough to pattern-match, but your incapacity is no
100.
▲
by
Panzerschrek
4mo ago
> an opinion I didn't read my comment properly. I have written, why Arabic alphabet is horrible. It's all cursive and letters aren't different enough from each other. > I’d add that neither the Arabic nor Latin alphabet
101.
▲
by
Panzerschrek
4mo ago
> But I like both cursive and Arabic Just a personal esthetic (unpractical) preference. > It's not optimized for printing and digital fonts I agree. But you can't say it's not useful for daily use. These two sentences c
102.
▲
by
Panzerschrek
4mo ago
Having latin alphabet with diacritics and digraphs is still better than something like Arabic. Some non-latin alphabet with letters separate from each other (like Greek, Cyrillic, Armenian, Georgian, etc.) would be fine too.
103.
▲
by
Panzerschrek
4mo ago
It's objectively so horrible. Letters have similar form to each other, joints between them makes it harder to take them apart. As I understand, Arabic alphabet wasn't designed to be practical for daily use and only for writing sac
104.
▲
by
Panzerschrek
4mo ago
Why do people still use this horrible-looking and hard to process alphabet? Why not switching to latin (as some countries did) or at least to reform it so that it's easier to type and to read?
105.
▲
by
Panzerschrek
4mo ago
It's unlikely. It means rewriting all these Electron apps using something more performant, which is pretty costly.
106.
▲
by
Panzerschrek
4mo ago
> we want the JVM to be able to treat them as efficiently as primitives. They want basically to solve the main Java design flaw with (almost) everything is a reference paradigm. C++ and Rust have had value-types from day one. > 64 bit
107.
▲
by
Panzerschrek
4mo ago
If DuckDB is so fast and has no data transfer overheads, does it need all this typical SQL machinery with filtering and joining via SELECT queries? Wouldn't it be simpler and faster to return all data to the caller code (all table rows
108.
▲
by
Panzerschrek
4mo ago
It has only 14 commits, which looks suspicions for me. Is it LLM-generated?
109.
▲
by
Panzerschrek
4mo ago
I did the same with one of small games I have developed. It wasn't that hard. I only needed to tweak the build script and to fix some minor issues, like changing how main function works and swapping color components in the result pic
110.
▲
by
Panzerschrek
4mo ago
Any change in basic arithmetic should be backwards-compatible. The easiest way to eliminate UB is to define signed overflow for existing types as 2-complement. But new types with different semantics (or maybe library wrappers) can be create
111.
▲
by
Panzerschrek
4mo ago
> enforce measures rendering handsets effectively unusable > When an iPhone user is not identified as being at a familiar location > equipping police with new powers to search properties without a warrant where stolen goods have be
112.
▲
by
Panzerschrek
4mo ago
> Don’t use RTTI. That's the core feature of the language. Not using it doesn't make any sense. > Don’t use stream (<iostream>, <stringstream>, etc.), use printf style functions instead. printf is type-unsafe a
113.
▲
by
Panzerschrek
4mo ago
Programs written in Java require installation of a middleware called Java runtime. It adds extra friction for end-users. And even if one has Java runtime installed, a newer version may be necessary for a recently-published application. With
114.
▲
by
Panzerschrek
4mo ago
> you dont need to write platform specific code You don't need to write platform-specific code if you use some cross-platform framework. For simple programs it may be enough to use only the standard library of your language of choic
115.
▲
by
Panzerschrek
4mo ago
> I don't ever want to run untrusted code from the internet outside of a sandbox ever again WASM is great, but I think it's a wrong approach for sandboxing problem. It's technically possible to sandbox native applications
116.
▲
by
Panzerschrek
4mo ago
void DoSomething( _In_reads_bytes_(numBytes) const void * p, _In_ size_t numBytes ); It's an anti-pattern in C++, which causes a lot of bugs and security vulnerabilities. That's why C++ Core Guidelines recommend to u
117.
▲
by
Panzerschrek
4mo ago
> The generation pipeline takes several inputs: > a heightmap that defines the surface relief > this is actually just used to generate the normal map, which is then used to bake in simple lighting and shadows I don't t
118.
▲
by
Panzerschrek
4mo ago
> We then choose the number of shade levels (32 in my case) meaning each color needs 31 darker variants I suggest to use not only darker variants, but also brighter ones - for bright map areas and maybe for some lighting effects like fla
119.
▲
by
Panzerschrek
4mo ago
> Catlantean 3D is a traditional raycaster. The map consists of tiles which are all identical in size; It's sad. That's why I never finished playing Wolfenstein 3D - it looks too boring. In the other hand I enjoy playing Doom,
120.
▲
by
Panzerschrek
4mo ago
> This IBM electronic typewriter had a gorgeous perspex molly guard around the power button Creators of some keyboards placing a sleep button right above arrow keys didn't bother doing this.
More ›