The Cell Phone in the Twenty-First Century: A Risk for Addiction or a Necessary Tool?

2024-02-19 Thread Irhontan
For a small percentage of cell phone users, cell phone use becomes problematic or addictive, characterized by excessive time spent on the cell phone, interference with social relationships and responsibilities, and difficulty disengaging from cell phones. Researchers have argued that depression,

The Cell Phone in the Twenty-First Century: A Risk for Addiction or a Necessary Tool?

2024-02-19 Thread Irhontan
For a small percentage of cell phone users, cell phone use becomes problematic or addictive, characterized by excessive time spent on the cell phone, interference with social relationships and responsibilities, and difficulty disengaging from cell phones. Researchers have argued that depression,

Is it impossible to declare an _empty enum_ under quote in order to populate it later in a macro?

2024-02-19 Thread xealits
Thanks for the links! I think it may actually be a good idiom to declare dummy nodes and delete them in the macro. The dummy nodes can serve as a demo for other developers of what you intend to do in the macro.

Is it impossible to declare an _empty enum_ under quote in order to populate it later in a macro?

2024-02-19 Thread xealits
It looks like `newEnum` also requires the enum to have at least one field: macro ... = enumDef = newEnum(`enumName`, [], true, true) $ nim c -r -d:release basic_macro.nim ... /.../.local/nim/lib/core/macros.nim(1272, 10) Error: Enum must contain at least one fi

How to detect (and report) reference cycles?

2024-02-19 Thread lou15b
I have a fairly large existing code base (~30k loc) that contains reference cycles, and I want to make that code suitable for use using `mm:arc` or `mm:atomicArc`. So I need to break those cycles, probably mostly by changing certain `ref` variables to `cursor` variabless. In order to do that I

Sugar Defender Reviews SCAM OR LEGIT Benefits Ingredients Price Must See Sugar Defender....

2024-02-19 Thread johsdean
Official Website@Official Website>>> ➥✅ Official Website: Sugar Defender ➥✅ Product Name: Sugar Defender ➥✅ Benefits: Sugar Defender Helps you to get Sugar Level Control ➥✅ Category: Sugar Level Control Supplement ➥✅ Rating: ☆ (4.5/5.0) ➥✅ Si

issues trying to install nim

2024-02-19 Thread amkrajewski
You can give [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install) a try if you are not developing your tool specifically for Windows. You can connect to WSL, e.g., with VSCode, and get a very smooth experience. In the case of several Nim codes I tried, it i

Futhark and editor tooling

2024-02-19 Thread Horkarod
Hello everyone. I am attempting to use the [MuPDF C library](https://www.mupdf.com/) in nim to manipulate pdf files. MuPDF is a large and constantly changing library and I decided to use PMunch's futhark to wrap it and it works great! Thank you PMunch! However, the futhark generated code really

Futhark and editor tooling

2024-02-19 Thread PMunch
Happy to hear that Futhark is working out for you :) I've found that structuring the code like the "Shipping wrappers" section suggests greatly helps editor support. You might have to restart the plugin/editor after the first build if it doesn't pick up the file automatically though. Here's the

Where to Buy Guardian Blood Balance Australia ?

2024-02-19 Thread HendsonMary
Official Facebook Page:- ➥➥ ➥ ➥ ✅Exclusive Discounted– ➺

Is it impossible to declare an _empty enum_ under quote in order to populate it later in a macro?

2024-02-19 Thread PMunch
You've basically stumbled upon the solutions. `quote` requires actual valid Nim syntax, so the way to solve it is to add dummy nodes which you can then later replace. I do that in [Futhark](https://github.com/PMunch/futhark/blob/master/src/futhark.nim#L393-L396) in order to get doc comments int

Is it impossible to declare an _empty enum_ under quote in order to populate it later in a macro?

2024-02-19 Thread mratsim
It's not hard to create the enum without quote do: # var enumValues = nnkEnumTy.newTree() enumValues.add newEmptyNode() for subtype i

Looking for a python-flask like nim web framework.

2024-02-19 Thread Clonk
Depends what you mean by production ready :). The project appears to be healthy; it has a good structure, tests, documentation, lots of functionality, development is active. I cannot speak about stability or maintainability since these criteria can only be determined over time and the project i

Is it impossible to declare an _empty enum_ under quote in order to populate it later in a macro?

2024-02-19 Thread awr1
nim is not lisp, that it has a more complicated grammar beyond sexps means ultimately that there are AST substitutions you cannot do in `quote do`. this is why when building macros you should always keep `astGenRepr` close by in case you do have to get dirtier. as your concern is with readabili