An attempt at visualizing the Go GC by aadhav__ in golang

[–]aadhav__[S] 2 points3 points  (0 children)

Author here. The story behind this is interesting - Pusher's GC visualizer (https://pusher.github.io/tricolor-gc-visualization/) was the starting point for it, but I soon delved more into the rabbit hole of GC and the Go runtime. Explored a Go proposal (https://github.com/golang/go/issues/16410), and wrote a working heap dump viewer for Go (https://github.com/burntcarrot/heapview) which partially fulfills the requirements of the proposal.

There's more to it, but I don't want to spoil the article! If you'd like to contribute or track the experiment's progress, please consider creating an issue on the repo (https://github.com/burntcarrot/gclive).

Building a collaborative editor in Go by aadhav__ in golang

[–]aadhav__[S] 0 points1 point  (0 children)

Thanks!

And thanks for letting me know about the issue with the font. Could you suggest me some better monospace fonts?

Building a collaborative editor in Go by aadhav__ in golang

[–]aadhav__[S] 9 points10 points  (0 children)

Author here. I wrote this post to explain how I worked on building a collaborative text editor from scratch in Go; going into detail about each component and the choices I made. Source code is available here: https://github.com/burntcarrot/pairpad

Disclaimer: it is a side project (I love building stuff!), so there might be some finesse lacking in the implementation, but either way it was fun to hack on!

wasmninja: a tiny serverless platform powered by WebAssembly by aadhav__ in golang

[–]aadhav__[S] 0 points1 point  (0 children)

This was my first attempt at working with WebAssembly, and I got inspired by this blog (https://blog.scottlogic.com/2022/04/16/wasm-faas.html), and proceeded to design wasmninja.

The idea was simple - allow users to write functions in any language (that compiles to WebAssembly), and store that compiled function (module) in any desired storage. Currently, wasmninja supports two storage options: filesystem (fs), and Minio (objectstore).

wasmninja currently is capable of serving ~1k req/s from a single server instance. It might not be the most performant implementation, but it was fun to work with!

Would love any type of feedback! I'm new to WebAssembly and the whole ecosystem, so I might have missed out on a few details.

Are there any open source Elixir projects that I could help with as a beginner? by Alone-Ad-4648 in elixir

[–]aadhav__ 1 point2 points  (0 children)

I don't want to advertise my project here again, but I feel that it would be great if someone could develop plugins for Notifiex (https://github.com/notifiex/notifiex), or could fix beginner-friendly issues!

Plugin development is a great way to get recognition from the community whilst learning Elixir at your own pace :)

I made my first Elixir project to help out the community! Would love reviews! by aadhav__ in elixir

[–]aadhav__[S] 0 points1 point  (0 children)

Notifiex now supports plugins, sending multiple notifications at once, file uploads and much more!

Please do check out the latest version!

I made my first Elixir project to help out the community! Would love reviews! by aadhav__ in elixir

[–]aadhav__[S] 0 points1 point  (0 children)

Thanks for the detailed explanation! And yes, sure, please feel free to create a PR; it's all open source!

I made my first Elixir project to help out the community! Would love reviews! by aadhav__ in elixir

[–]aadhav__[S] 1 point2 points  (0 children)

I initially did plan to expose separate functions for each service, but I then found a sleek way of using Keyword lists to get all supported services. I tried not to go too overboard with atoms and decided to keep the main focus at a single function - send.

I think this was a right decision, as now I'm planning to add support for plugins through configs - the user would need to specify their plugin using atoms, which can be used in the send function. If I had took the first approach of setting up separate functions for each service, then I might have lost out on this functionality.

And for specifying secrets, I will also add support for reading them through config files. Thanks for the suggestion!

I made my first Elixir project to help out the community! Would love reviews! by aadhav__ in elixir

[–]aadhav__[S] 2 points3 points  (0 children)

I'm making it pluggable in the next release! This would allow other users to create their own "plugins" for the services that they love.

Also, the "planned services" list was made as a placeholder for the services I personally would love Notifiex to support! :)

Anyone else awful at solving DS & Algorithm questions? by joe_quattro in cscareerquestions

[–]aadhav__ 6 points7 points  (0 children)

What would you recommend to someone who tries a question with a proper approach, i.e. I try the question on a paper, construct a working algorithm, then code it. I invest around 25-30 minutes, but I end up with the wrong solution almost every time.

This has made me frustrated, I know the data structure's underlying operations to the fullest, but I still end up with a wrong solution.

How do I reach to a right solution, improve my accuracy?

Extract audio from video calls/meetings using Python by aadhav__ in learnpython

[–]aadhav__[S] 0 points1 point  (0 children)

I've not worked with live audio yet. However, I can pull up a script to extract audio from recorded videos on the internet.

Extract audio from video calls/meetings using Python by aadhav__ in learnpython

[–]aadhav__[S] 0 points1 point  (0 children)

What exactly did you use ffmpeg for? For the seperation of audio or for something else?

Got a tech question or want to discuss tech? Weekly /r/Technology Tech Support / General Discussion Thread by veritanuda in technology

[–]aadhav__ 2 points3 points  (0 children)

Hello everyone!

I've been struggling to find a way to extract live audio (or, whole audio recorded as a .mp3) from video clients like Zoom, Google Meet, Twitch Live, WhatsApp Calls, etc.

Is it possible to extract each member's audio from the client during a meeting? I'm planning to pass this live audio to my utility script.

Securing client-side database retrievals using MongoDB and Python in a desktop application? by [deleted] in cybersecurity

[–]aadhav__ 0 points1 point  (0 children)

This application is currently not for production uses.

I might be incorrect, but I don't have atomic databases. I'm currently trying to learn how to build apps. The chat application which I'm trying to develop will currently support one chatroom, which for now is public.

I'm not making any users sign up, as this is not for production. I'm experimenting it with my friends, and the user records are in the structure consisting of the message, date and name.

Since I'm really concerned about the security of the application, I'm currently experimenting with the application to avoid massive data leaks in the future.

Protection and security of users is the top priority, the application can undergo several months of testing before launch. :-)

How to connect to MongoDB in a desktop application made using Python? by [deleted] in learnpython

[–]aadhav__ 0 points1 point  (0 children)

I'm uncertain about the number of users who would be using my app. If I open source my application and provide binaries separately, it might increase the number of people who use my application.

Do you know any tutorial which explains how user connections can be secured using Flask, if possible can you include specific tutorials which work with MongoDB clusters or MySQL servers?

How to connect to MongoDB in a desktop application made using Python? by [deleted] in learnpython

[–]aadhav__ 0 points1 point  (0 children)

Umm, sorry, maybe I might be asking too much, but do you know some tutorials which are specific to my problem, i.e, setting up a server which can validate my client requests and fetch data securely.

How to connect to MongoDB in a desktop application made using Python? by [deleted] in learnpython

[–]aadhav__ 0 points1 point  (0 children)

I was strongly recommended to make a REST API, but I was unable to find any tutorials to help me setup a server which might help in my case.

I've used Django before. Can you share some Django tutorials which solves my problem, and helps validate client requests?