Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pkolaczk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pkolaczk
4mo ago
There is a huge semantic difference between sharing an object by providing a reference to it, passing the ownership of the object and passing a copy. It’s not a technical low level detail because the results can differ. Many developers use
2.
▲
by
pkolaczk
5mo ago
As a heavy user of Java I can assure you that Java is very very far from boring, especially when building it with maven or gradle. There are millions ways something can screw up the build. Rust (and Go too) in comparison is much more boring
3.
▲
by
pkolaczk
5mo ago
Only if you ever deal with one future at a time. But async allows things like awaiting one of N events in a very natural way. Those patterns are much less readable when done with threads.
4.
▲
by
pkolaczk
5mo ago
That code was optimized for performance for 1980s hardware. It’s very far from optimized for modern CPUs.
5.
▲
by
pkolaczk
5mo ago
Threads are neither better or worse than async+callbacks. They are different. There are problems which map nicely to threads and there are problems which are much nicer to express with async.
6.
▲
by
pkolaczk
5mo ago
Rust (and Scala) type systems are somewhat stronger and more expressive in some areas than Haskell. Weaker in some other. But it’s not a clear cut that Haskell type system offers more safety guarantees.
7.
▲
by
pkolaczk
5mo ago
Java escape analysis is very weak, much weaker than what stack allocation and moving allows in languages like C, C++, Rust.
8.
▲
by
pkolaczk
5mo ago
They do work for me either, but I have learned to double check the locations of POIs with Google Maps to make sure I’ll arrive at the correct place.
9.
▲
by
pkolaczk
5mo ago
The interface and the direction instructions on Apple Maps are way ahead of Google Maps. The app performance is also much smoother / snappier, it connects to the car instantly and reliably, where with Android Auto it’been always waitin
10.
▲
by
pkolaczk
8mo ago
It still is an unbelievable memory hog. It got faster though.
11.
▲
by
pkolaczk
8mo ago
What do you mean it would destroy the valuable part of the signal? If the signal has a carrier (like in AM or FM) or some other regular pattern (e.g. digital signal) then the typical the way to recover it from under the noise floor is to us
12.
▲
by
pkolaczk
8mo ago
That’s why you probably want to use it in an oscillator rather than a filter. Then some of those problems go away. Although, some new ones appear like having to add a mixer … Some time ago I thought making a double superhet would be too com
13.
▲
by
pkolaczk
8mo ago
If you can afford losing a bit of frequency stability, you can use a varicap instead and control it by voltage. Precise multiturn potentiometers are much cheaper. Or just buy a programmable clock signal generator based on PLL and then make
14.
▲
by
pkolaczk
9mo ago
> Which is why when folks nowadays say "you cannot use XYZ for embedded", given what most embedded systems look like, and what many of us used to code on 8 and 16 bit home computers, I can only assert they have no idea how powe
15.
▲
by
pkolaczk
10mo ago
Hack or not a hack, it shouldn't hit the UI. It's a bug.
16.
▲
by
pkolaczk
10mo ago
I’ve had that bug a few times. I think it’s related to some roads being closed and/ or under reconstruction. I’ve seen this happen multiple times on the same route, and it always fixed itself after I passed the construction site.
17.
▲
by
pkolaczk
11mo ago
Technically it's not a pause as the pauses introduced by a typical STW tracing GC. It does not stop the other threads. The app can still continue to work during that cleanup. And it pops up in the profiler immediately with a nice sta
18.
▲
by
pkolaczk
11mo ago
We don’t need it in Poland. We’ve been using a similar but official government issued app with ID, driving license, car documents for years now. Works both on Android and iPhone. Can be also used for logging into government web apps like ta
19.
▲
by
pkolaczk
11mo ago
Oh, thanks, good to know. Now I feel more motivated. Because actually it’s not as easy as it looks from the text books. It’s like with drawing an owl. Yeah, pass the signal through a mixer and feed recovered carrier to its LO port and you’r
20.
▲
by
pkolaczk
11mo ago
You can use a germanium diode or even Shottky now instead of a “crystal”. Such a simple radio can be a gateway drug to a very complex and deep hobby. In my case it went like that: 1. Built a simple radio 2. Could hardly hear anything, need
21.
▲
by
pkolaczk
1y ago
However, gradle build or mvn install won’t select a proper version of Java to build your code. It won’t even tell you are building with wrong version. Rust, Go, even Scala SBT will.
22.
▲
by
pkolaczk
1y ago
You can work with SMT at home no problem. A decent hot air station like Quick 861dw will cost you just about $300 and you don’t need much more to tinker.
23.
▲
by
pkolaczk
1y ago
Circuits as black boxes is usually a very leaky abstraction, because how circuits work depends a lot on what’s connected to them. And they have plenty of attributes that can interact in very weird ways.
24.
▲
by
pkolaczk
1y ago
The parent comment is right. Rust async is simple state automata structs you can poll explicitly with no magic. Async/await is just some syntactic sugar on top of that, but you don’t have to use it. An obvious advantage of doing it tha
25.
▲
by
pkolaczk
1y ago
An obvious example of that is defining named constants and referring them by name instead of repeating the same value in N places. This is also DRY and good kind of DRY.
26.
▲
by
pkolaczk
1y ago
It's not so much about risk taking as about getting proper funding and overcoming the bureaucracy barriers. E.g. Poland itself has very low startup rates, but somehow Poles which go to USA create things like OpenAI ;)
27.
▲
by
pkolaczk
1y ago
But they decrease productivity. And I seriously think many teams don’t track the time sunk for fixing bugs / defects properly and they overestimate their productivity, especially the initial productivity boost from not having to think
28.
▲
by
pkolaczk
1y ago
Rust is one of a very few languages where I can make a total mess in my code by refactoring, have like 100+ compilation errors in multiple modules, think I’m never going to fix it, yet at the end of the day I eventually get everything to co
29.
▲
by
pkolaczk
1y ago
I wrote plenty of concurrent Rust code and the number of times I had to use Arc<Mutex> is extremely low (maybe a few times per thousands lines). As for your statement that concurrency is generally hard - yes it is. But it is even hard
30.
▲
by
pkolaczk
1y ago
Rust async streams or rayon come very close to what you describe as structured concurrency. Actually much closer than anything I saw in other mainstream languages eg Java or Go.
More ›