GithubHelp home page GithubHelp logo

shackley / swift-blade Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 3.0 86 KB

A macro powered dependency injection framework for Swift

Home Page: https://shackley.io/swift-blade/documentation/blade/

License: MIT License

Swift 100.00%

swift-blade's People

Contributors

shackley avatar steveriggins avatar

Stargazers

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

Watchers

 avatar

swift-blade's Issues

Missing comma in component initializer with more than one parameter

Hey there!

I’m having an issue where components with an initializer containing more than one parameter are being expanded without a separating comma.

Screenshot 2024-01-26 at 18 12 22

I don’t think I’m doing anything stupid. Kinda wonder if it’s a bug in the swift-syntax package? I’m not very well aquatinted with Swift Macros yet but I had a quick look over there and I did spot this issue which may be related?

Linux Support

I am pretty new to swift but I am running into issues getting this building on linux.
It appears that OSAllocatedUnfairLock from import os is an Apple only API.

https://github.com/shackley/swift-blade/blob/3a37bd49cd297d8aa5d4451207c1d029389e20d8/Sources/Blade/Lazy.swift#L22C23-L22C44e

Is there another way to solve the problem Lazy is doing without OSAllocatedUnfairLock?

Some members of the Vapor discord had suggested using NIOLock or NSLock on Linux. There was some great conversation about the preformance differences between OSUnfairLock and these other solutions.

The converstation can be found starting from here:
https://discord.com/channels/431917998102675485/499822537027616768/1186767808193888368

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.