Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

preslavrachev, (edited ) to Logseq
@preslavrachev@mastodon.social avatar

OK, personal knowledge management nerds, what’s it gonna be?


StefanMuenz,
@StefanMuenz@vivaldi.net avatar

@preslavrachev I've been using it for some months now. It's smooth like Notion, but with many benefits of Obsidian. During the beta period there are some limitations. At the moment, AnyType is using a default synchronization on its own cloud storage where server side storage is limited to 1GB per user account. But later self-hosted syncing will be possible. And there is no opt-out from syncing at the moment. That's why you are prompted to create an account when installing AnyType. As far as I know it will be also possible later to run it offline only.

preslavrachev,
@preslavrachev@mastodon.social avatar

@StefanMuenz thank you for summing it up.

Could you point me out to a link that talks about self-hosted syncing in the future? A friend of mine would interested in introducing their team to it, and the company would eventually even be ok with paying for support and further development, but this self-syncing is key for them.

preslavrachev, (edited ) to programming
@preslavrachev@mastodon.social avatar

There are two types of Go developers: those who … and those who …

Which one are you?

bmarinov,

@Crocmagnon @preslavrachev this is how I reason about pointer vs value too, as a form of documentation and a hint for developers. For receivers I tend to always end up with pointers anyway so I stick to that. Structs that end up with methods tend to have some form of state. Otherwise the method could've been a func.
Heap vs stack I don't care until someone proves to me that it's an issue.

preslavrachev,
@preslavrachev@mastodon.social avatar

@bmarinov @Crocmagnon both of you have valid points. I am glad that there are other people out there who don't care about stack-heap prematurely.

Just wanted to point out that there is a third category of pointer usage, which has its place: what I call "long-living service objects": https://preslav.me/2023/02/06/golang-do-we-need-struct-pointers-everywhere/#why-use-struct-pointer-types-then Think of a DB connection or a 3rd-part API client. You generally want one single instance of each across the entire app, even though you won't ever mutate it. Thus, the pointer usage.

preslavrachev, (edited ) to Java
@preslavrachev@mastodon.social avatar

Probably, an unpopular opinion, but hear me out: Java needs developer tools that are lightweight and built with native performance in mind. The existing ecosystem is solid, but slow and inefficient.

We can start with a simple formatter built in Rust, which takes nanoseconds to format your codebase, and does it relentlessly, without relying on you giving it any configuration options at all. Think, gofmt, rustfmt, Ruff’s Black-compatible formatter, etc.

Is this … ?

hawkesnest,

@preslavrachev I can get behind the sentiment. The Go and Rust and .NET ecosystems have canonical tooling, it would be great to have these for Java as well. Instead, we have multiple implementations compete without a corporate benevolent dictator. Yes, Oracle has tools, but nobody wants them.

I'm inclined to believe that the tooling should also be in the JVM, as dogfooding is important. Using a tool outside the native language might make sense in the implementation phase, but not final.

preslavrachev,
@preslavrachev@mastodon.social avatar

@hawkesnest I don't mind seeing this implemented using 's native image capabilities. It will be the perfect of dogfooding - developing with the best of the JVM has to offer, and exporting to native for performance reasons.

I only fear that the Java community would fall back on the exisiting tooling, unless an outsie competitor comes to shake the status quo. That's why I suggested Rust. Plus, it is guaranteed to be even faster (and with a smaller mem footprint).

preslavrachev, to goodnews
@preslavrachev@mastodon.social avatar

“For the first time, it is possible for water, produced by sunlight, to be even cheaper than tap water,”

A new sun-powered technology aims to convert seawater into drinkable water, which could be a game-changer for regions facing water scarcity.

https://news.mit.edu/2023/desalination-system-could-produce-freshwater-cheaper-0927 - via @feedle


#goodnews #positivenews #science #sustainability #solarpunk #climatechange

zleap,
@zleap@qoto.org avatar

@preslavrachev @feedle

Does Desalination alter the overall chemistry balance of sea water? If there is too many desalination plants around the world what will be the effect of removing all these salts from the seawater (on the basis it is more than just NaCl) what happens to the removed salts?

Ralph,

@reneestephen @bodhipaksa @preslavrachev @feedle

From the descriptions in the article, this is a low-temperature fractional-distillation rig, so the effluvium may not be overly salty.

The article is scanty on details, but "4 to 6 liters of drinking water per hour" from 10 square meter stages with no electricity could be handy.

I admit I'm being optimistic here, because SCIENCE!

preslavrachev, to django
@preslavrachev@mastodon.social avatar

I’ve known about for 15 years.

I’ve recommended it to others.

I’ve worked w teams that used it.

I’ve clapped for people who have built great things with it.

And year, until very recently, I hadn’t really worked with Django in earnest. Excluding dynamic typing (which is a part of why moved over to ), everything else hits home on so many levels. Everything I’ve ever needed is in one place, and simply works!

I’ve loved this framework before, now, even more 🐍

preslavrachev,
@preslavrachev@mastodon.social avatar

@halfbit_ @rednafi no, it isn’t. But in my 20 years of friendship with various programming languages, it probably comes the closest. I mean, there is Nim and Mojo that’s just about to come out, but those languages need at least another decade to reach the level of Go’s adoption.

appliedgo,

@preslavrachev @rednafi Well, there are indeed several kitchen-sink solutions available, battling for dominance.

There is no single ORM but rather GORM, Ent, and a few others. There is no single Web framework but rather Gin, Echo, Chi, Beego, Fiber...

Plus, you will always find a hardliner who says, "Go's kitchen-sink solution is the standard library, 'nuff said!"

preslavrachev, to random
@preslavrachev@mastodon.social avatar

Some days, it pains me that we've built such a useful service, and so few people get to even give it a chance 😔

I've done everything I possibly could (incuding, more than halving the monthly subscription price), but product marketing is something I personally suck at.

So, I am begging you, the community, to help us out. If you know anyone who would benefit from our social media news and stories aggregator, share this post with them.

Thanks! 🙏

https://murmel.social

@murmel_social

KraftTea, (edited )
@KraftTea@mastodon.social avatar

@preslavrachev @murmel_social Seems to me that EVERYONE wants to send me the news in my email just for visiting their site, often without my prodding, before I even subscribe to them.

I'm already trying to unsubscribe to them from doing so, even without paying $2 a month for that dubious privilege.

So much of the news I consume is for doing deeper dives and research anyway, a top ten list of what's popular is practically guaranteed to be useless to me.

mpjgregoire,
@mpjgregoire@cosocial.ca avatar

@preslavrachev
This is an interesting idea, probably useful to many people. You need to describe it better though. Maybe something like: "Murmel e-mails you links to the most important news stories of the day by checking what the people you follow on Mastodon are discussing." (That's probably still too long.)

@murmel_social

preslavrachev, to programming
@preslavrachev@mastodon.social avatar

My talk proposal got declined a few times. I’m trying to make sense of that. Does it have to do with the pitch, or is it a topic the Go community is generally not interested in?

I was expecting a little more enthusiasm when it comes to giving chance to non-cloud/infra/tooling topics. Why would you go to a conference talk, if it tells you the same story over and over again? I think that conference organizers should strive for more topic diversity.

https://preslav.me/2023/06/02/my-golang-conference-talk-proposal-got-declined-a-few-times/

Merovius,
@Merovius@chaos.social avatar

@preslavrachev To me, the pitch is missing some concrete details. You mention desirable qualities in software, but what are you actually doing? Are you using Go in the frontend? Server-side rendering? Did you built a MVC framework?

E.g. I'd describe a REST Go backend with a Typescript frontend as "using Go for a web service". That would a fairly common story. Yet, you paint your choice as "audacious", so probably not that?

That's what I'm missing from the pitch, at least.

jonbodner,

@Jdreben @preslavrachev @shuLhan I 100% agree that could be a good conference talk. A conference focused on web development might be a better fit.

preslavrachev, to markdown
@preslavrachev@mastodon.social avatar

Friends who write programming books - what do you use to put together your digital books? Over the years I’ve tried many tools, from Pages, through Google Docs, to #Obsidian.

Even though I like Obsidian as a vault of technical notes, it’s still hard to get the last mile - there is no default Table of Contents generator and very little in the form of #ebook formatting options. I used to use #leanpub for turning my #markdown files into a coherent book, but it’s way too many extra steps

#writing

preslavrachev,
@preslavrachev@mastodon.social avatar

@shepgo Yeah, Ulysses is what I am testing now. It's quite strange that a well-designed app like it hasn't brought in such a highly-needed feature for years. From a technical point of view, it shouldn't take a programmer more than a few days to add a simple ToC functionality that simply Takes H1-H3 headings and nothing more.

preslavrachev,
@preslavrachev@mastodon.social avatar

@shepgo BTW, here is an old discussion I had with their support: https://mastodon.social/@preslavrachev/110078958373422529 I had forgotten about it - apparently, there might be something in place for ePub already.

preslavrachev, to golang
@preslavrachev@mastodon.social avatar

I'm not saying you should ever write code this way, but it is noteworthy remembering that anonymous interfaces are perfectly valid Go code.

Though I haven't really seen any production code make sense of that, it may be useful if you are into hexagonal, a.k.a. "ports and adapters" stuff. Rather than having to explicitly type your ports, you can just have your functions take a port param, which is the anonymous interface itself.

What do you think about it?

tomasaschan,

@preslavrachev If I try to pass something that doesn't implement that interface, what will the compiler error say?

For named interfaces, the name of the interface is (an important!) part of the message; is there some mangled made-up name here, or is enough info given that I can understand what I need to do to fix it?

preslavrachev,
@preslavrachev@mastodon.social avatar

@tomasaschan Nothing pretty unusual, TBH. It's much of the same kind of "you are trying to implement an interface with methods A, B, and C, but only have A" thing.

preslavrachev, (edited ) to programming
@preslavrachev@mastodon.social avatar

Raise a hand if you knew that fmt.PrintXXX (and log.PrintXXX) would cause any variable you pass as an argument (even a primitive one) to be allocated on the heap. 🙋‍♂️

preslavrachev,
@preslavrachev@mastodon.social avatar

@vikkio yep, that’s me ;)

dolanor,
@dolanor@hachyderm.io avatar

@preslavrachev that would be my intuition with interfaces.

preslavrachev, to programming
@preslavrachev@mastodon.social avatar

Name this code smell.


preslavrachev,
@preslavrachev@mastodon.social avatar

@gerald_quintana thank you, that's perfect 👌🏻

maow_tty,

@preslavrachev The Hadouken.

preslavrachev, to programming
@preslavrachev@mastodon.social avatar

Like other procedural programming languages, Go has a tendency to focus on how a problem gets solved, sometimes obscuring what the actual problem is that needs to be solved. This is best seen in long functions and methods. Add to that the explicit error checks, and you can easily miss the forest for the trees.

But I might have found an (almost) idiomatic solution ...

https://preslav.me/2023/06/14/golang-focus-on-the-happy-path-with-step-functions/

rmanos,

@preslavrachev
I think the Task in this library does the same thing https://github.com/samber/mo
However, it does not have an example to show you

preslavrachev,
@preslavrachev@mastodon.social avatar

@rmanos perfect, I’ll add it to the list of references in the article.

preslavrachev, to fediverse
@preslavrachev@mastodon.social avatar

After a few days of hard work, I am happy to invite everyone to try the version of @murmel_social over at https://masto.murmel.social. We will keep ironing out issues in the coming days, but found the state good enough to let people in.

If your Mastodon instance isn't in the list we support, let us know and we will add it.

admin,

@preslavrachev @murmel_social Still sticky, on the pricing page.

preslavrachev,
@preslavrachev@mastodon.social avatar

@admin @murmel_social Yes, yes 🙈

preslavrachev, to apple
@preslavrachev@mastodon.social avatar

Switching to a Garmin after five years with the Apple Watch, I’m fully convinced that touch-enabled LCD screens were one of the stupidest things one could put on a wearable. Not only are they clunky and leave fingerprints all over the place (especially, during a sweaty run), they are brutally inefficient when it comes to battery life.

I don’t know much about the tech behind Garmin’s screens, but it’s the closest to having an e-ink watch I can think of.

heaths,
@heaths@fosstodon.org avatar

@yvz @preslavrachev Depends what you define as capable. I have a Instinct Solar that looks a bit like an old Casio and rugged as heck. I wear it rock climbing, backpacking, snowshoeing, on high-elevation glacier climbs, on water sports, and biking. Most smart watches won't work at high elevation or in extremely cold environments, and a glass panel would've been destroyed by now.

I'd say my Garmin is very capable, and paired with an Android still does quite a bit with my phone.

preslavrachev,
@preslavrachev@mastodon.social avatar

@heaths @yvz Considering that I've almost exclusively cared about health tracking and running workouts on my Apple Watch for the past five years, I realized that indeed, I wanted a running watch and a health tracker with a badass battery, and not a smartwatch. So, I got one of those instead.

preslavrachev, to goodnews
@preslavrachev@mastodon.social avatar

What if an algorithmic timeline can actually be used for good, rather than for targeting people with ads, or changing their political stance? Will this even work?

We don't know, which is why we are giving it a try. We have taught an algo to pick and from our growing selection of blogs and podcasts on @feedle.

It is far from perfect, but we want to share it with everybody we know and make your day a little brighter.

https://feedle.world/good-news

(P.S. Boost for visibility)

jasonsando,

@thisismissem @preslavrachev @feedle So good news ... for people who like good news?

thisismissem,
@thisismissem@hachyderm.io avatar

@jasonsando @preslavrachev @feedle nah, as in, like, realised that it was generally the right-wing that was creating a lot of bad news, and that good news stories tended to come from left-wing / socialist ideals, e.g., mutual aid, lifting others up, etc.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines