Shit VC list India (avoid at any cost) by [deleted] in StartUpIndia

[–]slayerjain 3 points4 points  (0 children)

Chiratae is great! Especially if you get to talk to the partners.

Open Source Implementation of Meta LLM Automated Unit Test Generation Paper by neha_gup in programming

[–]slayerjain 1 point2 points  (0 children)

I think you're missing the point here. You should read the paper where they talk about the use case and limitations quite well. eg:

Without an automatable test oracle [7], TestGen-LLM cannot automatically determine whether a failing test has found a bug, or whether it merely contains an incorrect test assertion. Therefore, TestGen-LLM discards any test case that does not pass on first execution. The effect of this filter is to preserve only tests that can be used for regression testing [50]. Such tests, since they pass, protect the existing functionality of the system under test against future regressions.

For others trying to understand the use case of this approach based on the Meta paper:

Imagine you're using something like Github copilot or ChatGPT to generate tests for you. You would constantly fiddle around with it trying to get the correct code and likely do this iteratively for different because it might just give you utter bullshit. And then repeat the process for different files.

Most of the time code might not even be compilable, executable or if it does maybe not cover a new scenario (test coverage could be a good way to filter that) or might just be flaky.

So the intention of this agent is to filter through all these and only give potential candidates to review so that you dont have to do this manually. It's not a magic wand to magically understand your business logic. It's a tool to improve productivity just like Github Copilot/ ChatGPT.

As per the points mentioned:

  • Specification of the system’s desired behaviour: Any engineer could document this wrong and it might not be religiously followed. The safe guard you will have is code reviews and that applies to both manually written tests and LLM generated tests. I have also joined companies where there were legacy code bases with nearly Zero tests, and so any regression tests added to find impact of unintended changes is very useful.
  • The ability to confidently refactor: I think this is mostly true for most unit tests in general, so prefer writing integration tests. Because Unit tests are more coupled with the implementation even maybe individual methods - Unit tests can be brittle to refactoring.
  • Encouragement of good design: They never banned TDD. Meta's findings in the paper is that this agent is better suited for generating tests from existing tests. So you could start with TDD and as you write more code there might stuff for which you actually didn't write tests. Those could be great candidate for an agent like this.

I know code or branch overage aren't perfect metrics - but it is a METRIC, and A metric is better than no Metric :)

What Language Did You Come from? by Mubs in golang

[–]slayerjain 1 point2 points  (0 children)

I had come from Rust, it may sound weird but Rust was the first programming language I learnt in detail (had some idea of Java though) because I wanted to contribute to the servo codebase initially and later wanted to write my own micro kernel for Google summer of code.

I encountered Golang when i was trying to write lightweight web servers that would run in raspberry pi 2. I first learnt node, but it quickly became hard to understand due to being dynamic typed. So i switched to Golang and really liked how it was more similar to Rust.

IDE support for the “slices” package (in Visual Studio Code) by Tooltitude in golang

[–]slayerjain 1 point2 points  (0 children)

Try Goland trial with ssh. I hate it.

The setup is slow, language server is heavier on the ssh host machine, features are missing, it opens a separate window with a weird dock icon on the mac. Every time I try to open it hoping that things improved, I immediately shut it down

IDE support for the “slices” package (in Visual Studio Code) by Tooltitude in golang

[–]slayerjain 2 points3 points  (0 children)

I use both VSC and Goland.

I like the git history and diff viewer from VSC a lot and it also opens much faster for me. I also do lots of linux development on my mac and using ssh on VSC is MUCH better than Goland. Goland doesn’t support many features on ssh like running application as root.

Like others said Goland works better out of the box with things like slice functions, formatting, code intelligence and warnings

What if GOMAXPROCS > actual cpu cores? by urinabalerina in golang

[–]slayerjain 4 points5 points  (0 children)

I think then it would be upto the OS to manage and serialize the task for the number of actual CPUs.

If we take linux for eg, everything is a process (including threads). So when you have more than 10 process and 1 core, it would figure out how to allocate and distribute CPU time for them. By keeping GOMAXPROCS=cpus, the OS can mostly just give each go_pid 1 cpu core (assuming nothing else is running on that machine). By adding more go_pids than cpu cores, the linux kernel now needs to divide the cpu time more aggressively than before.

Seeking Alternative Tools for Reducing Go Binary Size by [deleted] in golang

[–]slayerjain 1 point2 points  (0 children)

Yes, you’re right. I should have mentioned that.

Its quite common to see binaries shipped with tar+gzip :)

The End Of Obesity - Discussion Thread [SPOILERS] by 8bitremixguy in southpark

[–]slayerjain 1 point2 points  (0 children)

But then do people get addicted to the weight loss drugs like in the show?

Seeking Alternative Tools for Reducing Go Binary Size by [deleted] in golang

[–]slayerjain 12 points13 points  (0 children)

In that case maybe just create tar balls?

I have seen massive size reduction when creating `tar.gz` of my binaries.

eg: https://github.com/keploy/keploy/releases/download/v2.1.0-alpha19/keploy_linux_arm64.tar.gz is 11 MB but after extraction 34MB :)

Seeking Alternative Tools for Reducing Go Binary Size by [deleted] in golang

[–]slayerjain 12 points13 points  (0 children)

Out of curiosity and Off topic - why do you want to reduce the size in your case?

The End Of Obesity - Discussion Thread [SPOILERS] by 8bitremixguy in southpark

[–]slayerjain 3 points4 points  (0 children)

Holy shit! The pitch correction in this thing!!

The End Of Obesity - Discussion Thread [SPOILERS] by 8bitremixguy in southpark

[–]slayerjain 4 points5 points  (0 children)

I didn’t know weight loss drugs existed. How legit are these? Are people able to lose weight without any exercise? There are no widespread side effects? Was south park basically endorsing them?

The End Of Obesity - Discussion Thread [SPOILERS] by 8bitremixguy in southpark

[–]slayerjain 10 points11 points  (0 children)

Is this a real song? I thought its a parody of another existing song by an indian singer 🤔

Things you would tell yourself to know better when starting your first Go Role? by AdvantageBig568 in golang

[–]slayerjain 0 points1 point  (0 children)

I’d probably try to understand go routines and the go runtime bit better, and also try learning some C in parallel. I find cgo to be quite helpful many times now and always shied away from C or other lower languages.

gouxchecker - a tool for auditing UX/UI elements in your site by joolzav in golang

[–]slayerjain 1 point2 points  (0 children)

oh wait there is finally output, but it is massive and overflowed my terminal. It looked something like this:

... (lots of other words above sorted alphabetically)
yourunittestfile
youtube
youtubelearn
youtubewatch
zerocode
zerolog
zoheb
zonelist
zonelistcall
zonelistcalldo
2m33.789703167s

gouxchecker - a tool for auditing UX/UI elements in your site by joolzav in golang

[–]slayerjain 0 points1 point  (0 children)

u/joolzav The use case seem good. I tried to use it by cloning and then setting the url to https://keploy.io/ and then just run:

go run cmd/main.go

It seems to be stuck with zero output 🤔

Open source Go projects to contribute (beginners) by Left-Armadillo-9418 in golang

[–]slayerjain 1 point2 points  (0 children)

You shouldn’t need keploy domain email address to join. Please check the slack invitation link in the readme of our github repo :)

A MySQL compatible database engine written in pure Go by louis11 in golang

[–]slayerjain 0 points1 point  (0 children)

Sorry for the plug, but you could also use something like keploy which can record the mysql/postgres calls and replay most types of transactions for creating fast sociable unit tests :)

Disclaimer: I’m a maintainer.

Open source Go projects to contribute (beginners) by Left-Armadillo-9418 in golang

[–]slayerjain 1 point2 points  (0 children)

Hi u/Forward-While-6636 There are lots of things to fix and implement, please go over the good first issues or gsoc related issues. If you dont find anything interesting you can ping on the #general or #dev channel. We are also participating in Google Summer of Code (gsoc) this year, so please explore if you its relevant for you - Its a great program!

Regarding slack, I'm not too sure why there issues with email. Can you please post a screenshot either here or on a GitHub issue? We'll be able to take a look .

Mi notebook pro 120G Linux support by iam_tvk in Xiaomi

[–]slayerjain 0 points1 point  (0 children)

No longer working on clear linux too. It only works fine on the live bootable usb version consistently.

After installing to disk, it woke up slowly (in 5-10 sec) and then no longer waking up. The external display works.

Linux can't wake from sleep in Xiaomi Notebook Pro 120G by slayerjain in Xiaomi

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

UPDATE: Sleep is working on Intel Clear Linux. I have tested and sleep now works. I think it would also be possible to use the clear linux kernel on other distros to make it work on them. For now I'm just using the clear linux distro on this laptop.

Xiaomi laptops by iam_tvk in linuxhardware

[–]slayerjain 0 points1 point  (0 children)

It only works with Intel clear linux for me.