Giter Site home page Giter Site logo

braedonwooding / cpath Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 2.0 132 KB

A simple and nice looking cross platform C FileSystem with full C++ support

License: MIT License

C 55.94% C++ 43.86% Python 0.20%
benchmarks c comparisons cpath cpp-bindings file filesystem fs optimisation std

cpath's Introduction

Hi there ๐Ÿ‘‹ ๐Ÿค—

  • ๐Ÿ’ผ I'm currently working at Resonate Solutions
  • ๐Ÿ”ญ Iโ€™m currently interested in Compilers and Databases
  • ๐Ÿ˜„ Pronouns: he/him or they/them

Recent Projects

cpath's People

Contributors

braedonwooding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cpath's Issues

Investigate dynamically sized paths

This will make some APIs more optimal at the cost of more allocations.

For example, it'll reduce the number of copies we have to do in cpathPeekNextFile.

This would also let us skip doing str length checks.

Rewrite API

There are a few points in the API that are pretty messy.

  • Definition of constants
  • Lack of GDB/LLDB support for our CPP strings
  • Support C++ in windows
  • Max Path Length in windows isn't always 256, you can for example use a \\?\ prefix in older windows to allow longer paths (up to 32kbs ish).
    • I'm not going to support UNC paths (the \\?\ prefix) though (let's document that though).
    • I don't want to support an absurd stack array of anything above a couple thousand bytes. So we should require a buffer to be passed in for the cases of long paths, but we should allow overriding the path length for the case of windows.

CPath Fix Tests

For some reason I've got some focus to push some changes on this...

So going to work on fixing the failing tests!

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.