Commit Graph

1102 Commits

Author SHA1 Message Date
est31
225ef8e75d Use serde to deserialize the remaining things 2019-09-03 02:10:48 +02:00
est31
cc8872b4ee Use serde to deserialize Tagged<Value> 2019-09-03 01:41:26 +02:00
est31
9ba2e75ac1 Move code into separate visit function 2019-09-03 01:32:54 +02:00
est31
e8880a1a57 Deserialize Block using serde 2019-09-02 22:30:51 +02:00
est31
9b3a561e83 Small refactor 2019-09-02 22:06:46 +02:00
est31
d5494e58a4 ExtractType doesn't have to be implemented for Option any more 2019-09-02 21:12:09 +02:00
Jonathan Turner
4a00887e9d
Merge pull request #578 from jonathandturner/fix_577
Fix line completion for extended chars
2019-09-03 07:09:26 +12:00
Jonathan Turner
95feb1ff16 Fix line completion for extended chars 2019-09-03 06:06:25 +12:00
Jonathan Turner
3d912a2c1d
Merge pull request #575 from nushell/remove-unused-code
Remove unused code
2019-09-02 20:24:18 +12:00
Andrés N. Robalino
2cb290b77b
Merge pull request #573 from androbtech/embed
can embed a new field to the table.
2019-09-02 01:14:06 -05:00
Yehuda Katz
7fa09f59c2 Remove unused code
Closes #467
2019-09-01 23:11:05 -07:00
Yehuda Katz
246c9c06dc
Merge pull request #569 from est31/serde_instead_of_specialization
Remove use of ExtractType in deserialize_any
2019-09-01 22:39:13 -07:00
Yehuda Katz
9773f8fbab
Merge pull request #572 from nushell/bigint
Migrated numerics to BigInt/BigDecimal
2019-09-01 22:39:01 -07:00
Andrés N. Robalino
9488c41dcd can embed a new field to the table 2019-09-02 00:37:13 -05:00
Yehuda Katz
ca0183a136 Migrated numerics to BigInt/BigDecimal
This commit migrates Value's numeric types to BigInt and BigDecimal. The
basic idea is that overflow errors aren't great in a shell environment,
and not really necessary.

The main immediate consequence is that new errors can occur when
serializing Nu values to other formats. You can see this in changes to
the various serialization formats (JSON, TOML, etc.). There's a new
`CoerceInto` trait that uses the `ToPrimitive` trait from `num_traits`
to attempt to coerce a `BigNum` or `BigDecimal` into a target type, and
produces a `RangeError` (kind of `ShellError`) if the coercion fails.

Another possible future consequence is that certain performance-critical
numeric operations might be too slow. If that happens, we can introduce
specialized numeric types to help improve the performance of those
situations, based on the real-world experience.
2019-09-01 22:14:41 -07:00
Yehuda Katz
3d5e31c55d
Merge pull request #571 from nushell/bigint
Migrated numerics to BigInt/BigDecimal
2019-09-01 22:08:48 -07:00
Yehuda Katz
8a29c9e6ab Migrated numerics to BigInt/BigDecimal
This commit migrates Value's numeric types to BigInt and BigDecimal. The
basic idea is that overflow errors aren't great in a shell environment,
and not really necessary.

The main immediate consequence is that new errors can occur when
serializing Nu values to other formats. You can see this in changes to
the various serialization formats (JSON, TOML, etc.). There's a new
`CoerceInto` trait that uses the `ToPrimitive` trait from `num_traits`
to attempt to coerce a `BigNum` or `BigDecimal` into a target type, and
produces a `RangeError` (kind of `ShellError`) if the coercion fails.

Another possible future consequence is that certain performance-critical
numeric operations might be too slow. If that happens, we can introduce
specialized numeric types to help improve the performance of those
situations, based on the real-world experience.
2019-09-01 21:00:30 -07:00
Jonathan Turner
510ecaa77b
Merge pull request #567 from sharksforarms/crates-io-badge
Add crates.io badge
2019-09-02 14:48:38 +12:00
est31
113c2c380f deserialize_any isn't used any more 2019-09-02 04:07:02 +02:00
est31
bbde86c20d Use serde to deserialize bare bools
There are still tagged bools in use so we can't
remove the ExtractType implementation.
2019-09-02 03:45:00 +02:00
sharks
2dc78b2caf Add crates.io badge 2019-09-01 20:43:30 -05:00
est31
a69a0bc5ee Use serde to deserialize options 2019-09-02 03:40:21 +02:00
est31
e8bbd330e0 Deserialize tuples with serde 2019-09-02 03:40:18 +02:00
est31
79a779dbea Deserialize vecs with serde 2019-09-02 03:37:30 +02:00
est31
5491b54859 Make key and struct_field optional in DeserializerItem
The main point of this struct seems to be debugging,
as key_struct_field is unused except for debugging.
2019-09-02 03:31:11 +02:00
Jonathan Turner
36c181706d
Merge pull request #566 from jonathandturner/fix_538
Allow % in bare words
2019-09-02 12:59:01 +12:00
Jonathan Turner
f9d54c2f25 Allow % in bare words 2019-09-02 12:32:15 +12:00
Jonathan Turner
90f190e54a
Merge pull request #565 from jonathandturner/fix_open_panic
Fix unwrap in open
2019-09-02 12:30:09 +12:00
Jonathan Turner
abfd417430 Fix unwrap in open 2019-09-02 11:55:33 +12:00
Jonathan Turner
6e0cb6b809
Merge pull request #563 from est31/field_shorthand
Adopt field init shorthand in a few places
2019-09-02 11:45:32 +12:00
Jonathan Turner
9de1d9b782
Merge pull request #561 from djc/pub-crate
Get rid of feature(crate_visibility_modifier) (see #362)
2019-09-02 11:44:54 +12:00
est31
ad3234a9a0 Remove some commented out code 2019-09-01 23:41:08 +02:00
est31
8504c7a8e6 Adopt field init shorthand in a few places
Found by running 'egrep "(\b[a-zA-Z]+): \1\b" -R src'
2019-09-01 23:39:59 +02:00
Dirkjan Ochtman
8523ce3d01 Get rid of feature(crate_visibility_modifier) (see #362) 2019-09-01 21:56:17 +02:00
Jonathan Turner
2d8b558ac0
Merge pull request #559 from jonathandturner/zombie_killing
Another attempt to fix the zombie processes
2019-09-02 05:22:01 +12:00
Jonathan Turner
7d46f9e860 Another attempt to fix the zombie processes 2019-09-02 04:45:30 +12:00
Jonathan Turner
9e17b937c3
Merge pull request #557 from nushell/jonathandturner-patch-2
Attempt to speed up CI
2019-09-01 19:55:32 +12:00
Jonathan Turner
acdecdbb04
Attempt to speed up CI 2019-09-01 19:33:13 +12:00
Jonathan Turner
bf19dff602
Merge pull request #556 from jonathandturner/improve_post
Fix unwraps in post
2019-09-01 19:33:02 +12:00
Jonathan Turner
a7e378d1c9 Fix unwraps in post 2019-09-01 18:44:56 +12:00
Andrés N. Robalino
dd3c149615
Merge pull request #555 from nushell/help
Help baseline.
2019-08-31 19:37:25 -05:00
Andrés N. Robalino
ca0c6eaf58 This commit introduces a basic help feature. We can go to it
with the `help` command to explore and list all commands available.

Enter will also try to see if the location to be entered is an existing
Nu command, if it is it will let you inspect the command under `help`.

This provides baseline needed so we can iterate on it.
2019-08-31 19:06:11 -05:00
Jonathan Turner
ce2d247367
Merge pull request #554 from jonathandturner/random_fixes
Assorted fixes
2019-09-01 10:43:48 +12:00
Jonathan Turner
1a67ac6102 Random fixes 2019-09-01 09:19:59 +12:00
Jonathan Turner
70ebe899c6
Merge pull request #552 from est31/image_decoding
Remove unused image features
2019-09-01 06:24:42 +12:00
Jonathan Turner
ed8896e828
Merge pull request #551 from est31/bson_update
Update bson to 0.14
2019-09-01 06:16:11 +12:00
est31
00c5adda80 Remove unused image features 2019-08-31 19:45:09 +02:00
Patrick Meredith
b514d93ffd Add Decimal to sample.bson 2019-08-31 19:15:48 +02:00
est31
5b7940b88c Update bson to 0.14 2019-08-31 18:47:14 +02:00
Jonathan Turner
f5db3276b9
Update README.md 2019-08-31 18:12:08 +12:00