Activity

vighneshsawant366

https://review.haiku-os.org/c/haiku/+/10647
bluetooth: Fix L2capEndpoint::Shutdown() to close the socket in all
cases

Currently when a l2cap socket is in LISTEN state, shutdown only changes
it from LISTEN to BOUND, this change unbinds it also.

https://review.haiku-os.org/c/haiku/+/10648
bluetooth: Split SdpServer into a different file

This is a refactor, SdpServer will have to do quite a bit of stuff and
it makes sense to split it from bluetooth_server, This does not change
any functionality except removing _USE_FAKE_SDP_SERVER macro which does
not seem to be of any use.

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 21.04
Cookies: 🍪 472
Multiplier: 22.46 cookies/hr

Having a lot of fun contributing to FOSS!
Would encourage everyone to do it!!
Send me a DM if you need any help!

vighneshsawant366

https://review.haiku-os.org/c/haiku/+/10526
https://review.haiku-os.org/c/haiku/+/10527
bluetooth: Add support for SSP and refactor AcceptConnection and
CreateConnection

Move expecting commands from RemoteDevice::Authenticate to where they
are called.In SSP we expect for the events after ConnectionComplete.
For the state machine, LINK_KEY_NOTIFY tells us the end of the pairing
in both pairings, so we clear all expected events there for the ones we added in
ConnectionComplete, In SimplePairingComplete we clear the ones added
in IOCapabilityRequest. Tested with both bluetooth 2.1 and older pairing.

bluetooth: Make RemoteDevice::Authenticate actually pair after
connecting

Sends an auth request to the controller, if connection was initated by
us

Attachment
0
vighneshsawant366

https://review.haiku-os.org/c/haiku/+/10489
https://review.haiku-os.org/c/haiku/+/10494
Got More PR’s merged
bluetooth: Implement EIR parsing for HCI_EVENT_EXTENDED_INQUIRY_EVENT

This parses only EIR_NAME_SHORT and EIR_NAME_COMPLETE, others are not
yet usefull, adds a way to fetch the cached friendly name and adds a
friendlyName field to RemoteDevice. Refactors DeviceListItem to work on
RemoteDevice as it’s only being used for that.Also adds a check if the
cached name is complete or not. If not ask for the complete name.

bluetooth: Prevent duplicates in RemoteDevicesView

Loops through and compares baddr,if its matching does not add it again
and frees it.

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 15.05
Cookies: 🍪 333
Multiplier: 22.13 cookies/hr

The contribution part was fun but trying to setup a demo was absolutely not.
Would be contributing more to this. Hope people get attracted to this idea of personal computing os and try this os out. Atleast on a virtual machine!!

vighneshsawant366

Contributed two PR’s, one got merged,the other one is waiting for review!
https://review.haiku-os.org/c/haiku/+/10396
This PR adds support for a flag in the getaddrinfo() function, this mostly involved porting over a FreeBSD commit, in this I managed to create a bug which only appeared when certain applications were used, took me embarrassingly long to figure that out
https://review.haiku-os.org/c/haiku/+/10408
This PR changes the handling of the HCI_INQUIRY_RESULT_EVENT to conform with the bluetooth specification, before it was handling as if only 1 device was sent per event (almost all bluetooth devices do that only) so the difference did not surface. It was handling it as an array of structs whereas the bluetooth specification gives it as a struct of arrays.(Waiting for this to get merged)

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 3.5
Cookies: 🍪 34
Multiplier: 9.86 cookies/hr

Well got a 2x multiple for writing a compiler lol!

vighneshsawant366

Implemented Logical operators and relational, taking care of short circuiting also!
SO MUCH more stuff is there

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 6.0
Cookies: 🍪 79
Multiplier: 13.15 cookies/hr

I fixed a lot of undefined behaviour’s which I introduced by using unsafe rust!
This also includes me fixing stuff as told by my reviewer!
(Tldr: fixing bugs and making demo as per FT’s standards for shipping!)

vighneshsawant366

Shipped this project!

Hours: 11.7
Cookies: 🍪 23
Multiplier: 1.96 cookies/hr

Rewriting ir 3 times was not so fun, I learnt that making design decisions before is a good idea!

vighneshsawant366

Ok i forgot to devlog this, but I’ll do now.
In my first pass I had no IR so I had to rewrite a lot of stuff,
In my second try I chose a not so good IR so I had to rewrite IR AGAINNNN.
So finally I have settled on TACKY representation, on my way to implement a lot more stuff!!!!
My parsing approach was recursive decent parser, but had to change that up a little also as it started getting a little unwieldy!

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 1.62
Cookies: 🍪 10
Multiplier: 6.26 cookies/hr

Last ship did not include my improvements!
Just reshipping for that!!

vighneshsawant366

Write readme and some misc stuff!
My friends always hate my readme’s, hopefully this one is fine

Attachment
0
vighneshsawant366

Updated Readme, apparently some of my hour’s where logged in my parent directories name, I have added them!
This hours where mostly spent on me tinkering with miri and checking if my unsafe’s where really safe!
(Hint: they were not!)Fixed em!

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 10.26
Cookies: 🍪 248
Multiplier: 24.16 cookies/hr

YOO this was fun, messing with the memory model of today’s cpu’s (quite complex)!

vighneshsawant366

Implemented atomic ring buffer both mpmc and spsc and compared performance with the standard mutex one,also swapped the mutex from std lib to parking lot which gave some perfomance gains in my naive benchmark!
Now comes the big boy a linkedlist mpmc ring buffer, implementing the linux kernel design, wish me luck!

Attachment
Attachment
0
vighneshsawant366

BRO I HATE JAVASCRIPT OK
WHAT THE FUCK WAS HAPPENING IDK WHAT BUG I STILL DONT KNOW
I JUST PUT TWO PRINTF’S AND IT STARTED WORKING WTF!

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 8.42
Cookies: 🍪 81
Multiplier: 9.62 cookies/hr

Well I somehow managed to make a faster chacha20 than the zig std lib!
It may not be secure though lol.
Main learning was how amazing ILP(instruction level parrallesim) is!
The dev needs to put thought it to achieve it also!

vighneshsawant366

UH this was just me skill issuing github actions!
Got vibe coded website up!
The crypto implementation is mine though!

Attachment
0
vighneshsawant366

Faster than zig std lib lol(on my machine with avx2 going from 2->3 blocks interleaved did the trick,rest were microoptimisations which did not do much

Attachment
Attachment
0
vighneshsawant366

Managed to write a code which deadlocks!! Fixed it. Now on my way to learn ACQUIRE AND RELEASE SEMANTICS(ik them but making use of them is another beast)

Attachment
0
vighneshsawant366

Shipped this project!

Hours: 3.95
Cookies: 🍪 31
Multiplier: 7.78 cookies/hr

Made this thing run 1970’s games!!
I learned about the fetch decode execute cycle!

vighneshsawant366

Messing with wasm-bindgen mostly, writing some js and getting demo up!

Attachment
1

Comments

stunt
stunt 2 months ago

Apart from the lack of readme everything else is great!

vighneshsawant366

Implemented all op-codes,messed with some quirks and got IT WORKING!
Will work on porting this to wasm later!

Attachment
0
vighneshsawant366

I’m working on my first project! This is so exciting. I can’t wait to share more updates as I build.

Attachment
0