Erik Olsson

8.1K posts

Erik Olsson banner
Erik Olsson

Erik Olsson

@valross2

People connoisseur. Sometimes writing Swift, Go and other things.

เข้าร่วม Temmuz 2009
1.4K กำลังติดตาม47.9K ผู้ติดตาม
ทวีตที่ปักหมุด
Erik Olsson
Erik Olsson@valross2·
This may be the best app I've ever built
English
285
9.9K
19K
0
Erik Olsson
Erik Olsson@valross2·
All apps eventually converge into a 3d ASCII Sputnik + the 65° orbital inclination
English
0
0
3
454
Erik Olsson
Erik Olsson@valross2·
@patrickc This is correct, but you’re not alone. The large majority have never learned to tie their shoes properly. The proper way should be taught in schools or something 😂 instant life improvement
English
0
0
0
296
Patrick Collison
Patrick Collison@patrickc·
There are two ways of tying a standard shoelace knot, based on the relative handedness of the two half-knots, and the correct one basically never comes undone. I assume everyone else knows this and has been gently pitying me as I ignominiously retie my flailing laces, but sharing here just in case.
English
80
3
473
107.9K
Erik Olsson
Erik Olsson@valross2·
@steipete Depending on how advanced your markdown rendering needs to be (unless it needs tables, embedded images etc?) one good solution IMO is to use swift-markdown and construct attributed strings yourself. It’s not too much code and is easy to grasp and gives full control
English
1
0
0
414
Peter Steinberger 🦞
Peter Steinberger 🦞@steipete·
Totally not me spending 2h on trying to figure out how to reliably render markdown in SwiftUI. Why is everything so broken in Apple’s ecosystem?
English
30
1
194
30.2K
Peter Steinberger 🦞
Peter Steinberger 🦞@steipete·
Every once in a while gpt-5 gets confused and mixes thinking with real calls, and it's internal un-summarized thought process is WEIRD.
Peter Steinberger 🦞 tweet media
English
9
2
39
7.7K
Birk Jernström
Birk Jernström@birk·
Bought a country house today 🙊
Birk Jernström tweet media
English
384
49
4.3K
246.3K
Erik Olsson
Erik Olsson@valross2·
@krzyzanowskim I think swift would be pretty great if it had working code completion. SwiftUI is another story..
English
0
0
0
212
Marcin Krzyzanowski
Marcin Krzyzanowski@krzyzanowskim·
the number 1 reason why the number of not "native" apps submitted to Apple AppStore is dropping is: 1. Swift is too hard for apps, and only gets harder to start with 2. SwiftUI is DX is a failure 3. SwiftPM make dependencies harder than it should be (and is broken) 4. Xcode did I get the list right, or did I forget about something
English
86
11
569
80.6K
Erik Olsson
Erik Olsson@valross2·
@dhh Do they even serve Tuborg at the US playgrounds?
English
0
0
0
170
DHH
DHH@dhh·
The liability disclaimers in Denmark are very different from the US! I've seen kids break their arms here — nobody gets sued, nobody freaks out.
DHH tweet media
English
54
9
934
100.4K
Erik Olsson
Erik Olsson@valross2·
@ID_AA_Carmack There are so many things I spent a lot of time learning about in uni that I never use because of abstractions - but I still find it useful to have an idea of what’s going on under the hood
English
0
0
2
710
John Carmack
John Carmack@ID_AA_Carmack·
I thought I had good reason to code up a vectorized binary search, which was kind of fun to do, but then I checked, and the standard torch.searchsorted() works well enough. For all the emphasis given in computer science curriculums and job interviews, actually implementing classic algorithms is a rare event. If I had to, there was ample opportunity to specialize with fixed power of two sizes, but using existing functions is usually the right call. Adding a new dependency versus your own implementation can be a harder call.
English
77
53
1.4K
159.9K
Erik Olsson รีทวีตแล้ว
Joel Hellermark
Joel Hellermark@joelhellermark·
Really excited to launch Project Europe!!! We have brought together 125 of Europe's best founders, including @tobi and @klarnaseb, to back and mentor the next wave of generational entrepreneurs coming from Europe. Europe has always built—and will continue to build—iconic companies. But we are now at a fork in the road, and we need to think bigger—drawing inspiration from both past and present success stories to create the next generation of global category winners.
English
8
11
173
9.5K
Marcin Krzyzanowski
Marcin Krzyzanowski@krzyzanowskim·
rewrite Swift compiler in Go for 10x faster performance
English
22
5
229
21.7K
Florian Peninon
Florian Peninon@florianpeninon·
@valross2 @jtaby I moved away from xcode to relieve my Intel CPU, hoping that the slowness of the experience was linked to that… but no, I can still take a break between each code change waiting for the LSP to catch up.
English
1
0
1
51
Majd Taby
Majd Taby@jtaby·
The worst part of Swift is when you get a compiler error on a line that has nothing to do with the actual error in your code. It reaches nuclear levels of frustration when the error is simply “the compiler is unable to type-check this expression in a reasonable time” These ergonomics in the language don’t come for free.
Point-Free@pointfreeco

Modern Swift has a lot of advanced features, and you don’t need to know them all to be effective with the language, but when you can, the results can be magical.

English
21
7
190
28.4K
Erik Olsson
Erik Olsson@valross2·
@simonbs A cord connected to an outlet that you can pull out and plug back in to turn them on/off
English
0
0
3
59
Simon B. Støvring
Simon B. Støvring@simonbs·
Maybe, just maybe, I can squeeze one more feature into Festivitas before Christmas. What should it be? Snow, perhaps? ❄️ Any suggestions? 🤔
English
14
0
35
2.9K
Erik Olsson
Erik Olsson@valross2·
Papaya is just sad. The only reason people buy it is because it kind of looks like mango (the king of fruits)
English
0
1
4
1.6K
Erik Olsson
Erik Olsson@valross2·
@sdamico I need this for my omelettes. Super cool stuff
English
0
0
0
64
Erik Olsson
Erik Olsson@valross2·
@levelsio Check out quadtrees if you want something dead simple that doesn’t require any plugins, just an extra column
English
0
0
1
188
@levelsio
@levelsio@levelsio·
I love how the solution is always much easier I tried SQLite Spatial Lite extension and I couldn't even get it working, it also flooded my DB with ugly tables Then someone suggested Haversine formula which actually makes it much slower! The solution was simply removing decimals from the latitude_min and max and longitude_min and max so the query becomes LESS precise and easier and thus faster for SQLite to run Simple solutions win!
@levelsio@levelsio

Ok of course I took the site down with this tweet 😂 Told you it was alpha verison The SQL that makes Hotel List slow now is this: latitude>latitude_min AND latitude>latitude_max AND longitude>longitude_min AND longitude>longitude_max SQLite is generally highly performant but this stuff makes it trip up a bit Should I install some SQLite geo extension that searches this faster? I don't wanna SQL by city='lisbon-portugal' because I want people to be able to move around the map and set radius of search etc. Thanks!

English
51
12
630
222.7K
Erik Olsson
Erik Olsson@valross2·
@groue @jazzychad Able to use GRDB just fine from all kinds of extensions. No issues. Thx for a great framework
English
0
0
3
143
Gwendal Roué
Gwendal Roué@groue·
@jazzychad I should remove this paragraph from the documentation. I built several modularized apps without any issue. Maybe the Xcode bug no longer exist, or has moved (a few people are still discussing in the linked issue).
English
1
0
6
303
Chad Etzel
Chad Etzel@jazzychad·
Lots of people recommending GRDB but this seems like a showstopper issue for building modern apps, which rely more and more on having extensions for system integration…?
Chad Etzel tweet media
English
2
0
6
3K
Erik Olsson รีทวีตแล้ว
Polar
Polar@polar_sh·
Dear builders, Today, we're announcing Polar v1.0. An open source alternative to Lemon Squeezy with 20%+ lower fees. Designed for builders, indie hackers and open source maintainers. You push the world forward. It's time you got paid coding on your passion.
English
124
204
1.9K
404.3K