Skip to content
#

efficient

Here are 117 public repositories matching this topic...

Nim
mratsim
mratsim commented Nov 24, 2019

sizeof doesn't work for types that store Atomics. This would be useful to size the memory buffer for thread-safe memory allocators with what is left from the synchronization primitives.

import std/atomics

type
  Node = ptr object
    # works
    next: Atomic[pointer]

  MyChannel = object
    # type not defined completely
    back: Atomic[ptr int]

static:
  echo sizeof(N
rmarronnier
rmarronnier commented Feb 26, 2019

https://docs.amberframework.org/amber/guides/controllers/flash#flash-now

Calling flash.now["blabla"] gives a compile error : 'undefined method 'now' for Hash(String, String)'

Calling flash.now "key", "value" compiles but doesn't do anything and nothing gets returned in the logs

Versions

Amber CLI (amberframework.org) - v0.11.3
Crystal 0.27.2 [60760a546] (2019-02-05)

LLVM: 4.0.

Byron
Byron commented Mar 15, 2020

Previously jwalk would follow symlinks, so we could not use it and instead implemented our own traversal.

Now with jwalk 0.5, this is supported and we can use our standard jwalker to do the job.

https://github.com/Byron/dua-cli/blob/543f7f3948c26250a8fc6ebf79a49f3ddfa3cb63/src/interactive/app/handlers.rs#L305-L340

The function above would have to change to use jwalk. It should be straight

pps83
pps83 commented Jun 6, 2019

It should be quite obvious for first time users to see some simplest APIs (to compress/uncompress buffer without dealing with any file io). Strangely, lizard has links to file format, but no clues to basic api use (is it in examples, which one is the "hello world"?. I've been using zlib for more than a decade, and I've never needed to know its file format, perhaps same for 90% of its users.

IMO

Neehan
Neehan commented Mar 15, 2019

The instructions are very vague. It's not even clear if this project is self-containing. In eval.sh, there is a parameter for the link to the directory of SkipThoughts implementation. Does it mean SkipThoughts need to be installed separately or it's somewhere in the repo? If it's the former, is that still compatible with the rest of your codebase?

Can you provide more details about the insta

Improve this page

Add a description, image, and links to the efficient topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the efficient topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.