Giter Club home page Giter Club logo

libc-stl's Introduction

Yo ๐Ÿ‘‹, I'm Anirudh Lakhanpal

A passionate web developer and enthusiastic practitioner of C++ and Python development, deeply engaged in exploring the realms of deep learning to enrich and elevate digital experiences.

sharoniv0x86

sharoniv0x86

  • ๐ŸŒฑ Iโ€™m currently learning C++, NextJS, Typescript, Linux

  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on StringWiz LibC-STL

  • ๐Ÿ’ฌ Ask me about Linux, Low Level Learning, C/C++

  • ๐Ÿ“ซ How to reach me [email protected]

  • โšก Fun fact I have good humor and I possess a knack for injecting wit into even the most somber of situations.

Connect with me:

anirudh-lakhanpal-0a7138284 anirudhlakhanpal sharon.iv.pcap0x86

Languages and Tools:

c cplusplus css3 firebase git gtk linux mongodb mysql nextjs nodejs oracle pandas pytorch qt react reactnative redis scikit_learn sqlite tailwind tensorflow typescript wx_widgets

sharoniv0x86

ย sharoniv0x86

sharoniv0x86

libc-stl's People

Contributors

sharoniv0x86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

libc-stl's Issues

Implementing error handling.

This is kinda important for now, the error handling or using assertions for compile time checking. I havent found any use case for using assertions for compile time checking, can probably use it in create_vector function.

    Vector *int_vector = create_vector(5, INT);
    Vector *float_vector = create_vector(5, FLOAT);
    Vector *char_vector = create_vector(5, CHAR);
    Vector *string_vector = create_vector(5, STR);

Maybe this can require compile time checking, although if you pass Vector *char_vector = create_vector(5, INT); this will produce error and will exit.

In the functions like

push_back_int(...)
push_back_float(...)
push_back_double(...)

These along with some other functions, they return 1 on success and 0 on failure, the idea is to have some predefined macros with error codes and user can choose whether they want to handle error or not by comparing the error codes against the functions returned values.

Adding documentation.

Currently the Vector container defined in include/Vector.h is mission detailed documentation, i will be working on adding documentation myself maybe directly with readme files or using gituhb wiki, but currently we only have the usage example of vector.

Another idea is to add comment block over each function in the Vector.h but that will significantly increase the LoCs so this is kept as a future idea when the functions/methods definitions and declarations are moved into separate files .c and .h files, or a static library used is added.

Implementing Iterators for iterating containers.

Implementing Basic iterators for iterating containers and adding more iterator methods

My basic idea is to create a iterator struct inside the vector struct so that each vector will have a iterator associated with it.
The iterator struct will have defined methods like the C++ iterators have See so that we can user (.) operator to call the iterator associated with it.

And making each iterator struct's object/variable as a stand alone datatype which can be used to iterate vector for now only, but the issue with this is whether to choose if the iterator will have a type, like in C++ there are iterator of all datatype so how to implement something similar in this scenario.

Feel free to share any ideas.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.